From 53e25a0c588a4256a73589ca777cfc4b436d544c Mon Sep 17 00:00:00 2001 From: Jason Chan Date: Wed, 17 Jul 2019 17:35:05 -0400 Subject: wrap condition variable waitForConditionOrInterruptNoAssertUntil --- src/mongo/util/fail_point.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mongo/util/fail_point.h') diff --git a/src/mongo/util/fail_point.h b/src/mongo/util/fail_point.h index 7c00827fc73..7b8b51d21e3 100644 --- a/src/mongo/util/fail_point.h +++ b/src/mongo/util/fail_point.h @@ -149,7 +149,7 @@ public: */ void shouldFailCloseBlock(); - void sync() const; + void sync(OperationContext* opCtx) const; bool syncEnabled() const; @@ -305,10 +305,10 @@ inline void MONGO_FAIL_POINT_PAUSE_WHILE_SET_OR_INTERRUPTED(OperationContext* op } } -inline void MONGO_FAIL_POINT_SYNC(FailPoint& failPoint) { +inline void MONGO_FAIL_POINT_SYNC(OperationContext* opCtx, FailPoint& failPoint) { if (MONGO_FAIL_POINT(failPoint)) { if (failPoint.syncEnabled()) { - failPoint.sync(); + failPoint.sync(opCtx); } else { while (MONGO_FAIL_POINT(failPoint)) { sleepmillis(100); -- cgit v1.2.1