Commit 53d9303f authored by unknown's avatar unknown

bug#16873 -

  Print creating of dd objects during ndb_restore


storage/ndb/tools/restore/consumer_restore.cpp:
  Print creating of dd objects
parent c56af3aa
...@@ -453,15 +453,15 @@ BackupRestore::object(Uint32 type, const void * ptr) ...@@ -453,15 +453,15 @@ BackupRestore::object(Uint32 type, const void * ptr)
{ {
NdbDictionary::LogfileGroup * lg = m_logfilegroups[old.getDefaultLogfileGroupId()]; NdbDictionary::LogfileGroup * lg = m_logfilegroups[old.getDefaultLogfileGroupId()];
old.setDefaultLogfileGroup(* lg); old.setDefaultLogfileGroup(* lg);
info << "Creating tablespace: " << old.getName() << "..." << flush;
int ret = dict->createTablespace(old); int ret = dict->createTablespace(old);
if (ret) if (ret)
{ {
NdbError errobj= dict->getNdbError(); NdbError errobj= dict->getNdbError();
err << "Failed to create tablespace \"" << old.getName() << "\": " info << "FAILED " << errobj << endl;
<< errobj << endl;
return false; return false;
} }
debug << "Created tablespace: " << old.getName() << endl; info << "done" << endl;
} }
NdbDictionary::Tablespace curr = dict->getTablespace(old.getName()); NdbDictionary::Tablespace curr = dict->getTablespace(old.getName());
...@@ -491,15 +491,15 @@ BackupRestore::object(Uint32 type, const void * ptr) ...@@ -491,15 +491,15 @@ BackupRestore::object(Uint32 type, const void * ptr)
if (!m_no_restore_disk) if (!m_no_restore_disk)
{ {
info << "Creating logfile group: " << old.getName() << "..." << flush;
int ret = dict->createLogfileGroup(old); int ret = dict->createLogfileGroup(old);
if (ret) if (ret)
{ {
NdbError errobj= dict->getNdbError(); NdbError errobj= dict->getNdbError();
err << "Failed to create logfile group \"" << old.getName() << "\": " info << "FAILED" << errobj << endl;
<< errobj << endl;
return false; return false;
} }
debug << "Created logfile group: " << old.getName() << endl; info << "done" << endl;
} }
NdbDictionary::LogfileGroup curr = dict->getLogfileGroup(old.getName()); NdbDictionary::LogfileGroup curr = dict->getLogfileGroup(old.getName());
...@@ -532,12 +532,13 @@ BackupRestore::object(Uint32 type, const void * ptr) ...@@ -532,12 +532,13 @@ BackupRestore::object(Uint32 type, const void * ptr)
<< " to tablespace: oldid: " << old.getTablespaceId() << " to tablespace: oldid: " << old.getTablespaceId()
<< " newid: " << ts->getObjectId() << endl; << " newid: " << ts->getObjectId() << endl;
old.setTablespace(* ts); old.setTablespace(* ts);
info << "Creating datafile \"" << old.getPath() << "\"..." << flush;
if (dict->createDatafile(old)) if (dict->createDatafile(old))
{ {
err << "Failed to create datafile \"" << old.getPath() << "\": " info << "FAILED " << dict->getNdbError() << endl;
<< dict->getNdbError() << endl;
return false; return false;
} }
info << "done" << endl;
} }
return true; return true;
break; break;
...@@ -554,12 +555,13 @@ BackupRestore::object(Uint32 type, const void * ptr) ...@@ -554,12 +555,13 @@ BackupRestore::object(Uint32 type, const void * ptr)
<< " newid: " << lg->getObjectId() << " newid: " << lg->getObjectId()
<< " " << (void*)lg << endl; << " " << (void*)lg << endl;
old.setLogfileGroup(* lg); old.setLogfileGroup(* lg);
info << "Creating undofile \"" << old.getPath() << "\"..." << flush;
if (dict->createUndofile(old)) if (dict->createUndofile(old))
{ {
err << "Failed to create undofile \"" << old.getPath() << "\": " info << "FAILED " << dict->getNdbError() << endl;
<< dict->getNdbError() << endl;
return false; return false;
} }
info << "done" << endl;
} }
return true; return true;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment