diff options
author | unknown <joreland@mysql.com> | 2005-05-26 14:03:26 +0200 |
---|---|---|
committer | unknown <joreland@mysql.com> | 2005-05-26 14:03:26 +0200 |
commit | 350232cf3322d4672651fb4fd7fbac833ccd64e6 (patch) | |
tree | f4908321f2e79d4953e4f5e5887a7f8f359f41e3 /ndb/tools/restore | |
parent | e364865018be89aa19efceec5cda54c3604e6309 (diff) | |
download | mariadb-git-350232cf3322d4672651fb4fd7fbac833ccd64e6.tar.gz |
bug#10190 - ndb
ndb_restore invalid handling of distribution keys when restoring meta data
(also aligned printout with that of ndb_desc)
ndb/src/ndbapi/NdbDictionaryImpl.cpp:
Don't call it a distribution key if all keys are set as distribution key
ndb/tools/Makefile.am:
Use same format as desc when printing meta in ndb_restore
ndb/tools/restore/Restore.cpp:
Use same format as desc when printing meta in ndb_restore
Diffstat (limited to 'ndb/tools/restore')
-rw-r--r-- | ndb/tools/restore/Restore.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/ndb/tools/restore/Restore.cpp b/ndb/tools/restore/Restore.cpp index fa616ee8fee..81a8d4aba41 100644 --- a/ndb/tools/restore/Restore.cpp +++ b/ndb/tools/restore/Restore.cpp @@ -925,19 +925,12 @@ operator<<(NdbOut& ndbout, const LogEntry& logE) return ndbout; } +#include <NDBT.hpp> NdbOut & operator<<(NdbOut& ndbout, const TableS & table){ - ndbout << endl << "Table: " << table.getTableName() << endl; - for (int j = 0; j < table.getNoOfAttributes(); j++) - { - const AttributeDesc * desc = table[j]; - ndbout << desc->m_column->getName() << ": " - << (Uint32) desc->m_column->getType(); - ndbout << " key: " << (Uint32) desc->m_column->getPrimaryKey(); - ndbout << " array: " << desc->arraySize; - ndbout << " size: " << desc->size << endl; - } // for + + ndbout << (* (NDBT_Table*)table.m_dictTable) << endl; return ndbout; } |