diff options
author | tomas@poseidon.ndb.mysql.com <> | 2005-09-08 15:43:46 +0200 |
---|---|---|
committer | tomas@poseidon.ndb.mysql.com <> | 2005-09-08 15:43:46 +0200 |
commit | a6c9ebba470befa2ed5143ad10a8d0fc39ba1574 (patch) | |
tree | 0aea203a8bc315fc932b057bfc4318abffa96832 /ndb/test/src | |
parent | 3979938c516cd22b9db9568cdbbf92d865b4148f (diff) | |
download | mariadb-git-a6c9ebba470befa2ed5143ad10a8d0fc39ba1574.tar.gz |
corrected printouts in backup test
Diffstat (limited to 'ndb/test/src')
-rw-r--r-- | ndb/test/src/NdbBackup.cpp | 9 |
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; |