Commit 0b6f218e authored by unknown's avatar unknown

small bug fix for ndb restarter

parent 94c7e14c
...@@ -146,13 +146,14 @@ NdbBackup::execRestore(bool _restore_data, ...@@ -146,13 +146,14 @@ NdbBackup::execRestore(bool _restore_data,
ndbout << "scp res: " << res << endl; ndbout << "scp res: " << res << endl;
BaseString::snprintf(buf, 255, "%sndb_restore -c \"%s\" -n %d -b %d %s %s .", BaseString::snprintf(buf, 255, "%sndb_restore -c \"%s:%d\" -n %d -b %d %s %s .",
#if 1 #if 1
"", "",
#else #else
"valgrind --leak-check=yes -v " "valgrind --leak-check=yes -v "
#endif #endif
addr.c_str(), ndb_mgm_get_connected_host(handle),
ndb_mgm_get_connected_port(handle),
_node_id, _node_id,
_backup_id, _backup_id,
_restore_data?"-r":"", _restore_data?"-r":"",
......
...@@ -36,7 +36,7 @@ NdbRestarter::NdbRestarter(const char* _addr): ...@@ -36,7 +36,7 @@ NdbRestarter::NdbRestarter(const char* _addr):
m_config(0) m_config(0)
{ {
if (_addr == NULL){ if (_addr == NULL){
addr.assign("localhost"); addr.assign("");
} else { } else {
addr.assign(_addr); addr.assign(_addr);
} }
......
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