Rename debug_onIdle
This commit is contained in:
parent
5b365458cb
commit
4fce3032d9
|
@ -120,7 +120,8 @@ public:
|
|||
void reset();
|
||||
void debugTransaction(UID dID) { tr.debugTransaction(dID); }
|
||||
|
||||
Future<Void> debug_onIdle() { return reading; }
|
||||
// Wait for all reads that are currently pending to complete
|
||||
Future<Void> pendingReads() { return reading; }
|
||||
|
||||
// Used by ThreadSafeTransaction for exceptions thrown in void methods
|
||||
Error deferredError;
|
||||
|
|
|
@ -249,7 +249,7 @@ ReadConflictRangeImpl::ReadConflictRangeImpl(KeyRangeRef kr) : SpecialKeyRangeBa
|
|||
|
||||
ACTOR static Future<Standalone<RangeResultRef>> getReadConflictRangeImpl(Reference<ReadYourWritesTransaction> ryw,
|
||||
KeyRange kr) {
|
||||
wait(ryw->debug_onIdle());
|
||||
wait(ryw->pendingReads());
|
||||
return ryw->getReadConflictRangeIntersecting(
|
||||
KeyRange(KeyRangeRef(kr.begin.removePrefix(LiteralStringRef("\xff\xff/transaction/read_conflict_range/")),
|
||||
kr.end.removePrefix(LiteralStringRef("\xff\xff/transaction/read_conflict_range/")))));
|
||||
|
|
|
@ -808,7 +808,7 @@ struct WriteDuringReadWorkload : TestWorkload {
|
|||
}
|
||||
wait( waitForAll( operations ) );
|
||||
ASSERT( timebomb == 0 || 1000*(now() - startTime) <= timebomb + 1 );
|
||||
wait( tr.debug_onIdle() );
|
||||
wait( tr.pendingReads() );
|
||||
wait( delay(0.000001) ); //to ensure triggered watches have a change to register
|
||||
self->finished.trigger();
|
||||
wait( waitForAll( watches ) ); //only for errors, should have all returned
|
||||
|
|
Loading…
Reference in New Issue