summaryrefslogtreecommitdiff
path: root/ndb/tools/restore
diff options
context:
space:
mode:
authorunknown <joreland@mysql.com>2005-05-26 14:03:26 +0200
committerunknown <joreland@mysql.com>2005-05-26 14:03:26 +0200
commit350232cf3322d4672651fb4fd7fbac833ccd64e6 (patch)
treef4908321f2e79d4953e4f5e5887a7f8f359f41e3 /ndb/tools/restore
parente364865018be89aa19efceec5cda54c3604e6309 (diff)
downloadmariadb-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.cpp13
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;
}