Commit b2e337c0 authored by unknown's avatar unknown

testBackup


ndb/src/mgmsrv/MgmtSrvr.cpp:
  Fix so that start backup can be blocking
ndb/test/run-test/daily-devel-tests.txt:
  Use atrt-testBackup (which setups env)
parent 013a3ac1
...@@ -2420,7 +2420,17 @@ void ...@@ -2420,7 +2420,17 @@ void
MgmtSrvr::backupCallback(BackupEvent & event) MgmtSrvr::backupCallback(BackupEvent & event)
{ {
m_lastBackupEvent = event; m_lastBackupEvent = event;
theWaitState = NO_WAIT; switch(event.Event){
case BackupEvent::BackupFailedToStart:
case BackupEvent::BackupAborted:
case BackupEvent::BackupCompleted:
theWaitState = NO_WAIT;
break;
case BackupEvent::BackupStarted:
if(theWaitState == WAIT_BACKUP_STARTED)
theWaitState = NO_WAIT;
}
return;
} }
......
...@@ -27,7 +27,7 @@ cmd: atrt-testBackup ...@@ -27,7 +27,7 @@ cmd: atrt-testBackup
args: -n BackupOne T1 T6 T3 I3 args: -n BackupOne T1 T6 T3 I3
max-time: 1000 max-time: 1000
cmd: testBackup cmd: atrt-testBackup
args: -n BackupBank T6 args: -n BackupBank T6
# #
......
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