#At file:///home/marty/MySQL/mysql-5.1-telco-6.2/
2983 Martin Skold 2009-09-08
Bug#40428 core dumped when restore backup log file(redo log): set the correct length
of log attribute when restore with '--print'
modified:
storage/ndb/tools/restore/Restore.cpp
=== modified file 'storage/ndb/tools/restore/Restore.cpp'
--- a/storage/ndb/tools/restore/Restore.cpp 2009-05-26 18:53:34 +0000
+++ b/storage/ndb/tools/restore/Restore.cpp 2009-09-08 10:38:53 +0000
@@ -1308,7 +1308,9 @@ 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-telco-6.2 branch (Martin.Skold:2983) Bug#40428 | Martin Skold | 8 Sep 2009 |