List:Commits« Previous MessageNext Message »
From:Andrei Elkin Date:March 24 2009 1:51pm
Subject:bzr commit into mysql-5.1-bugteam branch (aelkin:2845) Bug#42977
View as plain text  
#At file:///home/andrei/MySQL/BZR/FIXES/bug42997-rbr_250_cols_read_from_rl/ based on revid:aelkin@stripped

 2845 Andrei Elkin	2009-03-24
      Bug #42977   RBR logs for rows with more than 250 column results in corrupt binlog.
      
      correcting the position of the null-terminator in DBUG_PRINT_BITSET()
modified:
  sql/rpl_utility.h

=== modified file 'sql/rpl_utility.h'
--- a/sql/rpl_utility.h	2009-03-24 10:09:56 +0000
+++ b/sql/rpl_utility.h	2009-03-24 13:51:15 +0000
@@ -300,7 +300,7 @@ namespace {
     char buf[256];                                 \
     for (uint i = 0 ; i < min(sizeof(buf), (BS)->n_bits) ; ++i) \
       buf[i] = bitmap_is_set((BS), i) ? '1' : '0'; \
-    buf[min(sizeof(buf),(BS)->n_bits)] = '\0';     \
+    buf[min(sizeof(buf),(BS)->n_bits) - 1] = '\0';     \
     DBUG_PRINT((N), ((FRM), buf));                 \
   } while (0)
 

Thread
bzr commit into mysql-5.1-bugteam branch (aelkin:2845) Bug#42977Andrei Elkin24 Mar