summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_mongod.cpp
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2019-01-15 06:41:23 -0500
committerSuganthi Mani <suganthi.mani@mongodb.com>2019-01-23 09:05:58 -0500
commit55d6072f0be597e950809d9ebcf9ba16cc96942d (patch)
tree46beb62563e7a2c4ef9b704123c4a540b820b5e3 /src/mongo/db/service_entry_point_mongod.cpp
parentb89d1cb056f82af22a5bef211bd2680f3784e7c2 (diff)
downloadmongo-55d6072f0be597e950809d9ebcf9ba16cc96942d.tar.gz
SERVER-38511 Avoid killing read operations on stepdown, gated by new server parameter “closeConnectionsOnStepdown”.
Diffstat (limited to 'src/mongo/db/service_entry_point_mongod.cpp')
-rw-r--r--src/mongo/db/service_entry_point_mongod.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/service_entry_point_mongod.cpp b/src/mongo/db/service_entry_point_mongod.cpp
index a23439bac6c..85132367b51 100644
--- a/src/mongo/db/service_entry_point_mongod.cpp
+++ b/src/mongo/db/service_entry_point_mongod.cpp
@@ -102,7 +102,7 @@ public:
// Ensures that if we tried to do a write, we wait for write concern, even if that write was
// a noop.
if ((lastOpAfterRun == lastOpBeforeRun) &&
- GlobalLockAcquisitionTracker::get(opCtx).getGlobalExclusiveLockTaken()) {
+ GlobalLockAcquisitionTracker::get(opCtx).getGlobalWriteLocked()) {
repl::ReplClientInfo::forClient(opCtx->getClient()).setLastOpToSystemLastOpTime(opCtx);
lastOpAfterRun = repl::ReplClientInfo::forClient(opCtx->getClient()).getLastOp();
}