summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/do_txn.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2018-07-08 15:32:08 -0400
committerGeert Bosch <geert@mongodb.com>2018-07-11 16:54:14 -0400
commitc225e347b049a2aa8fc507d142056b396fe5bfb8 (patch)
tree4fe9aa0640fdf19afeb54cf0e6735eb5adb36389 /src/mongo/db/repl/do_txn.cpp
parentc9c340ad6e9e1f33cb001a8375c62d6b16138c74 (diff)
downloadmongo-c225e347b049a2aa8fc507d142056b396fe5bfb8.tar.gz
SERVER-36013 Remove isMMAPv1 predicates and resulting dead code
Diffstat (limited to 'src/mongo/db/repl/do_txn.cpp')
-rw-r--r--src/mongo/db/repl/do_txn.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/repl/do_txn.cpp b/src/mongo/db/repl/do_txn.cpp
index 33d306d5fce..afaa4ccb212 100644
--- a/src/mongo/db/repl/do_txn.cpp
+++ b/src/mongo/db/repl/do_txn.cpp
@@ -183,15 +183,6 @@ Status _doTxn(OperationContext* opCtx,
(*numApplied)++;
if (MONGO_FAIL_POINT(doTxnPauseBetweenOperations)) {
- // While holding a database lock under MMAPv1, we would be implicitly holding the
- // flush lock here. This would prevent other threads from acquiring the global
- // lock or any database locks. We release all locks temporarily while the fail
- // point is enabled to allow other threads to make progress.
- boost::optional<Lock::TempRelease> release;
- auto storageEngine = opCtx->getServiceContext()->getStorageEngine();
- if (storageEngine->isMmapV1() && !opCtx->lockState()->isW()) {
- release.emplace(opCtx->lockState());
- }
MONGO_FAIL_POINT_PAUSE_WHILE_SET(doTxnPauseBetweenOperations);
}
}