[Commits] Rev 2846: Fix buildbot errors: rec_per_key_part can be 0 if re-opening in file:///home/psergey/dev2/5.3-look1/

Sergey Petrunya psergey at askmonty.org
Mon Nov 8 19:51:31 EET 2010


At file:///home/psergey/dev2/5.3-look1/

------------------------------------------------------------
revno: 2846
revision-id: psergey at askmonty.org-20101108175131-2tu1y59beit3jlis
parent: psergey at askmonty.org-20101108160626-d4o4hzmgbyz6ab4g
committer: Sergey Petrunya <psergey at askmonty.org>
branch nick: 5.3-look1
timestamp: Mon 2010-11-08 20:51:31 +0300
message:
  Fix buildbot errors: rec_per_key_part can be 0 if re-opening
=== modified file 'storage/myisam/mi_open.c'
--- a/storage/myisam/mi_open.c	2010-11-08 16:06:26 +0000
+++ b/storage/myisam/mi_open.c	2010-11-08 17:51:31 +0000
@@ -669,7 +669,7 @@
   pthread_mutex_unlock(&THR_LOCK_myisam);
 
   bzero(info.buff, share->base.max_key_block_length * 2);
-  my_free(rec_per_key_part, MYF(0));
+  my_free(rec_per_key_part, MYF(MY_ALLOW_ZERO_PTR));
 
   if (myisam_log_file >= 0)
   {



More information about the commits mailing list