Commit 0b6f218e authored by unknown's avatar unknown
Browse files

small bug fix for ndb restarter

parent 94c7e14c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -146,13 +146,14 @@ NdbBackup::execRestore(bool _restore_data,
  
  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
	   "",
#else
	   "valgrind --leak-check=yes -v "
#endif
	   addr.c_str(),
	   ndb_mgm_get_connected_host(handle),
	   ndb_mgm_get_connected_port(handle),
	   _node_id, 
	   _backup_id,
	   _restore_data?"-r":"",
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ NdbRestarter::NdbRestarter(const char* _addr):
  m_config(0)
{
  if (_addr == NULL){
    addr.assign("localhost");
    addr.assign("");
  } else {
    addr.assign(_addr);
  }