summaryrefslogtreecommitdiff
path: root/ndb/test/src
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2005-09-08 15:43:46 +0200
committertomas@poseidon.ndb.mysql.com <>2005-09-08 15:43:46 +0200
commita6c9ebba470befa2ed5143ad10a8d0fc39ba1574 (patch)
tree0aea203a8bc315fc932b057bfc4318abffa96832 /ndb/test/src
parent3979938c516cd22b9db9568cdbbf92d865b4148f (diff)
downloadmariadb-git-a6c9ebba470befa2ed5143ad10a8d0fc39ba1574.tar.gz
corrected printouts in backup test
Diffstat (limited to 'ndb/test/src')
-rw-r--r--ndb/test/src/NdbBackup.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/ndb/test/src/NdbBackup.cpp b/ndb/test/src/NdbBackup.cpp
index 28724323bd7..1e56db83c11 100644
--- a/ndb/test/src/NdbBackup.cpp
+++ b/ndb/test/src/NdbBackup.cpp
@@ -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;