Fix nodiscard errors
This commit is contained in:
parent
971b857c51
commit
ae7ef12102
|
@ -575,7 +575,6 @@ struct BackupAndRestoreCorrectnessWorkload : TestWorkload {
|
|||
printf("%.6f %-10s Wait #%4d for %lld tasks to end\n", now(), randomID.toString().c_str(), waitCycles, (long long) taskCount);
|
||||
|
||||
wait(delay(5.0));
|
||||
tr->commit();
|
||||
tr = Reference<ReadYourWritesTransaction>(new ReadYourWritesTransaction(cx));
|
||||
int64_t _taskCount = wait( backupAgent.getTaskCount(tr) );
|
||||
taskCount = _taskCount;
|
||||
|
|
|
@ -360,7 +360,6 @@ struct BackupToDBCorrectnessWorkload : TestWorkload {
|
|||
printf("%.6f %-10s Wait #%4d for %lld tasks to end\n", now(), randomID.toString().c_str(), waitCycles, (long long) taskCount);
|
||||
|
||||
wait(delay(5.0));
|
||||
tr->commit();
|
||||
tr = Reference<ReadYourWritesTransaction>(new ReadYourWritesTransaction(cx));
|
||||
int64_t _taskCount = wait( backupAgent->getTaskCount(tr) );
|
||||
taskCount = _taskCount;
|
||||
|
|
|
@ -169,7 +169,6 @@ struct BackupToDBUpgradeWorkload : TestWorkload {
|
|||
printf("%.6f Wait #%4d for %lld tasks to end\n", now(), waitCycles, (long long) taskCount);
|
||||
|
||||
wait(delay(20.0));
|
||||
tr->commit();
|
||||
tr = Reference<ReadYourWritesTransaction>(new ReadYourWritesTransaction(cx));
|
||||
int64_t _taskCount = wait( backupAgent->getTaskCount(tr) );
|
||||
taskCount = _taskCount;
|
||||
|
|
|
@ -357,7 +357,7 @@ struct ConsistencyCheckWorkload : TestWorkload
|
|||
}
|
||||
catch(Error &e)
|
||||
{
|
||||
tr.onError(e);
|
||||
wait(tr.onError(e));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue