List:Commits« Previous MessageNext Message »
From:Annamalai Gurusami Date:December 20 2012 1:55pm
Subject:bzr push into mysql-5.6 branch (annamalai.gurusami:4809 to 4810)
View as plain text  
 4810 Annamalai Gurusami	2012-12-20 [merge]
      Merge from mysql-5.5 to mysql-5.6. 

    modified:
      storage/archive/ha_archive.cc
 4809 Marko Mäkelä	2012-12-20 [merge]
      Merge mysql-5.6 to working copy.

    modified:
      storage/innobase/fil/fil0fil.cc
=== modified file 'storage/archive/ha_archive.cc'
--- a/storage/archive/ha_archive.cc	revid:marko.makela@stripped-adjyuu91gktbq3fl
+++ b/storage/archive/ha_archive.cc	revid:annamalai.gurusami@strippedx1cg31x
@@ -965,10 +965,11 @@ int ha_archive::write_row(uchar *buf)
   ha_statistic_increment(&SSV::ha_write_count);
   mysql_mutex_lock(&share->mutex);
 
-  if (!share->archive_write_open)
-    if (share->init_archive_writer())
-      DBUG_RETURN(HA_ERR_CRASHED_ON_USAGE);
-
+  if (!share->archive_write_open && share->init_archive_writer())
+  {
+    rc= HA_ERR_CRASHED_ON_USAGE;
+    goto error;
+  }
 
   if (table->next_number_field && record == table->record[0])
   {
@@ -1049,8 +1050,8 @@ int ha_archive::write_row(uchar *buf)
   rc= real_write_row(buf,  &(share->archive_write));
 error:
   mysql_mutex_unlock(&share->mutex);
-  my_free(read_buf);
-
+  if (read_buf)
+    my_free(read_buf);
   DBUG_RETURN(rc);
 }
 

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.6 branch (annamalai.gurusami:4809 to 4810) Annamalai Gurusami20 Dec