From: Date: October 27 2008 10:24pm Subject: bzr commit into mysql-5.1 branch (zhou.li:2707) Bug#40428 List-Archive: http://lists.mysql.com/commits/57474 X-Bug: 40428 Message-Id: <200810272124.m9RLO0tg032692@laptop.laptop> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit #At file:///home/zhl/mysql/mysql-5.1-telco-6.3-bug-40428/ 2707 Leonard Zhou 2008-10-28 BUG#40428 Set the right 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 the right length of attribute === 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:23:24 +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;