summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.cpp
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2019-03-05 13:50:45 -0500
committerVesselina Ratcheva <vesselina.ratcheva@10gen.com>2019-03-06 12:16:11 -0500
commit1fe923eec6c301f554ec5a5cfb9a40ebf4318e13 (patch)
treeefd6b29a00d32358c3f295a57c79def4d70747ac /src/mongo/db/db.cpp
parenta6a424f3961bec9e2311fa78a10e563d98ed2e88 (diff)
downloadmongo-1fe923eec6c301f554ec5a5cfb9a40ebf4318e13.tar.gz
SERVER-39139 Make lock mode for ReplicationStateTransitionLockGuard configurable
Diffstat (limited to 'src/mongo/db/db.cpp')
-rw-r--r--src/mongo/db/db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp
index fcebf6e1d98..3376ba561f9 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -904,7 +904,7 @@ void shutdownTask() {
// destroy all stashed transaction resources in order to release locks, and finally wait
// until the lock request is granted.
repl::ReplicationStateTransitionLockGuard rstl(
- opCtx, repl::ReplicationStateTransitionLockGuard::EnqueueOnly());
+ opCtx, MODE_X, repl::ReplicationStateTransitionLockGuard::EnqueueOnly());
// Kill all operations. After this point, the opCtx will have been marked as killed and will
// not be usable other than to kill all transactions directly below.