Commit 744de3cc authored by unknown's avatar unknown
Browse files

Bug#25446, START BACKUP NOWAIT Reports error and then continues


storage/ndb/src/mgmclient/CommandInterpreter.cpp:
  add a goto to avoid a repeated ndb_mgm_start_backup() call
parent 7af5a3e9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2489,6 +2489,7 @@ CommandInterpreter::executeStartBackup(char* parameters, bool interactive)
  {
    flags = 0;
    result = ndb_mgm_start_backup(m_mgmsrv, 0, &backupId, &reply);
    goto END_BACKUP;
  }
  else if (sz == 1 || (sz == 3 && args[1] == "WAIT" && args[2] == "COMPLETED"))
  {
@@ -2522,6 +2523,7 @@ CommandInterpreter::executeStartBackup(char* parameters, bool interactive)
  }
  result = ndb_mgm_start_backup(m_mgmsrv, flags, &backupId, &reply);

END_BACKUP:
  if (result != 0) {
    ndbout << "Backup failed" << endl;
    printError();