Fix nodiscard errors

This commit is contained in:
Andrew Noyes 2019-08-09 16:22:12 -07:00
parent 971b857c51
commit ae7ef12102
4 changed files with 1 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -357,7 +357,7 @@ struct ConsistencyCheckWorkload : TestWorkload
}
catch(Error &e)
{
tr.onError(e);
wait(tr.onError(e));
}
}
}