mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
corrected printouts in backup test
This commit is contained in:
parent
3979938c51
commit
a6c9ebba47
2 changed files with 7 additions and 4 deletions
|
@ -596,7 +596,7 @@ public:
|
|||
|
||||
bool insertFileHeader(BackupFormat::FileType, BackupRecord*, BackupFile*);
|
||||
void sendBackupRef(Signal* signal, BackupRecordPtr ptr, Uint32 errorCode);
|
||||
void sendBackupRef(BlockReference ref, Signal *signal,
|
||||
void sendBackupRef(BlockReference ref, Uint32 flags, Signal *signal,
|
||||
Uint32 senderData, Uint32 errorCode);
|
||||
void dumpUsedResources();
|
||||
void cleanup(Signal*, BackupRecordPtr ptr);
|
||||
|
|
|
@ -50,14 +50,17 @@ NdbBackup::start(unsigned int & _backup_id){
|
|||
2, // wait until completed
|
||||
&_backup_id,
|
||||
&reply) == -1) {
|
||||
g_err << "Could not start backup " << endl;
|
||||
g_err << "Error: " << reply.message << endl;
|
||||
g_err << "Error: " << ndb_mgm_get_latest_error(handle) << endl;
|
||||
g_err << "Error msg: " << ndb_mgm_get_latest_error_msg(handle) << endl;
|
||||
g_err << "Error desc: " << ndb_mgm_get_latest_error_desc(handle) << endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if(reply.return_code != 0){
|
||||
g_err << "PLEASE CHECK CODE NdbBackup.cpp line=" << __LINE__ << endl;
|
||||
g_err << "Error: " << reply.message << endl;
|
||||
g_err << "Error: " << ndb_mgm_get_latest_error(handle) << endl;
|
||||
g_err << "Error msg: " << ndb_mgm_get_latest_error_msg(handle) << endl;
|
||||
g_err << "Error desc: " << ndb_mgm_get_latest_error_desc(handle) << endl;
|
||||
return reply.return_code;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue