diff options
author | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-01-31 02:10:28 -0500 |
---|---|---|
committer | Suganthi Mani <suganthi.mani@mongodb.com> | 2019-02-06 11:25:15 -0500 |
commit | 0b1c1f570bd5b916ef0661e376dfe4d27387d3c8 (patch) | |
tree | 6fae0276839b67f61bd321487c61bf846f21fe4b /src/mongo/db/curop_failpoint_helpers.h | |
parent | 29685e3b88423a503e048982d76e91727aaba8e1 (diff) | |
download | mongo-0b1c1f570bd5b916ef0661e376dfe4d27387d3c8.tar.gz |
SERVER-38519 Test transactions with new stepdown sequence.
Diffstat (limited to 'src/mongo/db/curop_failpoint_helpers.h')
-rw-r--r-- | src/mongo/db/curop_failpoint_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/curop_failpoint_helpers.h b/src/mongo/db/curop_failpoint_helpers.h index 84f15caecb1..fb3b4608fef 100644 --- a/src/mongo/db/curop_failpoint_helpers.h +++ b/src/mongo/db/curop_failpoint_helpers.h @@ -50,6 +50,13 @@ public: * whileWaiting() may be used to do anything the caller needs done while hanging in the * failpoint. For example, the caller may use whileWaiting() to release and reacquire locks in * order to avoid deadlocks. + * + * If checkForInterrupt is false, the field "shouldCheckForInterrupt" may be set to 'true' at + * runtime to cause this method to uassert on interrupt. + * + * The field "shouldContinueOnInterrupt" may be set to 'true' to cause this method to continue + * on interrupt without asserting, regardless of whether checkForInterrupt or the field + * "shouldCheckForInterrupt" is set. */ static void waitWhileFailPointEnabled(FailPoint* failPoint, OperationContext* opCtx, |