List:Commits« Previous MessageNext Message »
From:Leonard Zhou Date:October 27 2008 10:41pm
Subject:bzr commit into mysql-5.1 branch (leonard:2707) Bug#40428
View as plain text  
#At file:///home/zhl/mysql/mysql-5.1-bug-40428/

 2707 Leonard Zhou	2008-10-28
      Bug#40428 set the correct length of log attribute when restore with '--print'
modified:
  storage/ndb/tools/restore/Restore.cpp

per-file messages:
  storage/ndb/tools/restore/Restore.cpp
    set correct length
=== modified file 'storage/ndb/tools/restore/Restore.cpp'
--- a/storage/ndb/tools/restore/Restore.cpp	2008-09-19 06:45:00 +0000
+++ b/storage/ndb/tools/restore/Restore.cpp	2008-10-27 21:40:48 +0000
@@ -1666,7 +1666,8 @@ operator<<(NdbOut& ndbout, const Attribu
   
   NdbRecAttr tmprec(0);
   tmprec.setup(desc.m_column, 0);
-  tmprec.receive_data((Uint32*)data.void_value, data.size);
+  Uint32 length = (desc.size)/8 * (desc.arraySize);
+  tmprec.receive_data((Uint32*)data.void_value, length);
   ndbrecattr_print_formatted(ndbout, tmprec, g_ndbrecord_print_format);
 
   return ndbout;

Thread
bzr commit into mysql-5.1 branch (leonard:2707) Bug#40428Leonard Zhou30 Oct