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

    modified:
      storage/archive/ha_archive.cc
 5288 Marko Mäkelä	2012-12-20 [merge]
      (Null) merge mysql-5.6 to mysql-trunk.

=== modified file 'storage/archive/ha_archive.cc'
--- a/storage/archive/ha_archive.cc	revid:marko.makela@stripped21220075934-0bliq7dbr3z1zzxv
+++ b/storage/archive/ha_archive.cc	revid:annamalai.gurusami@stripped6-7zpw31behzbfz1j7
@@ -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-trunk branch (annamalai.gurusami:5288 to 5289) Annamalai Gurusami20 Dec