summaryrefslogtreecommitdiff
path: root/src/mongo/db/write_concern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/write_concern.cpp')
-rw-r--r--src/mongo/db/write_concern.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/write_concern.cpp b/src/mongo/db/write_concern.cpp
index 6fa18476b43..d552e4e4ad1 100644
--- a/src/mongo/db/write_concern.cpp
+++ b/src/mongo/db/write_concern.cpp
@@ -269,8 +269,7 @@ Status waitForWriteConcern(OperationContext* opCtx,
// This fail point pauses with an open snapshot on the oplog. Some tests pause on this fail
// point prior to running replication rollback. This prevents the operation from being
// killed and the snapshot being released. Hence, we release the snapshot here.
- auto recoveryUnit = opCtx->releaseAndReplaceRecoveryUnit();
- recoveryUnit.reset();
+ opCtx->replaceRecoveryUnit();
hangBeforeWaitingForWriteConcern.pauseWhileSet();
}