summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_rollback.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/repl/rs_rollback.cpp
parenta6a424f3961bec9e2311fa78a10e563d98ed2e88 (diff)
downloadmongo-1fe923eec6c301f554ec5a5cfb9a40ebf4318e13.tar.gz
SERVER-39139 Make lock mode for ReplicationStateTransitionLockGuard configurable
Diffstat (limited to 'src/mongo/db/repl/rs_rollback.cpp')
-rw-r--r--src/mongo/db/repl/rs_rollback.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/rs_rollback.cpp b/src/mongo/db/repl/rs_rollback.cpp
index c1aee2a88a9..b9cabd2580f 100644
--- a/src/mongo/db/repl/rs_rollback.cpp
+++ b/src/mongo/db/repl/rs_rollback.cpp
@@ -1517,7 +1517,7 @@ void rollback(OperationContext* opCtx,
// then.
{
- ReplicationStateTransitionLockGuard transitionGuard(opCtx);
+ ReplicationStateTransitionLockGuard transitionGuard(opCtx, MODE_X);
auto status = replCoord->setFollowerModeStrict(opCtx, MemberState::RS_ROLLBACK);
if (!status.isOK()) {