add try-catch block that ignores backup_unneeded
This commit is contained in:
parent
b01cae5464
commit
53d7d8ba63
|
@ -96,7 +96,13 @@ struct IncrementalBackupWorkload : TestWorkload {
|
|||
}
|
||||
}
|
||||
if (self->stopBackup) {
|
||||
wait(self->backupAgent.discontinueBackup(cx, self->tag));
|
||||
try {
|
||||
wait(self->backupAgent.discontinueBackup(cx, self->tag));
|
||||
} catch (Error& e) {
|
||||
if (e.code() != error_code_backup_unneeded) {
|
||||
throw;
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue