summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-05-18 08:36:12 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-18 20:36:08 +0000
commit756ad8eb9c7566b186f8e51ed20e16c21b44b566 (patch)
tree4b84d17ea2edfb799995b12dc8b80099d7139515
parentbab691491a8db3419dab5ecd79689d5357f1e0cc (diff)
downloadmongo-756ad8eb9c7566b186f8e51ed20e16c21b44b566.tar.gz
SERVER-48265 Fix and-ordering when appending topology version to shutdown errors
-rw-r--r--src/mongo/db/service_entry_point_common.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 9f0349a2f20..4796bd20a44 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -514,7 +514,7 @@ void appendErrorLabelsAndTopologyVersion(OperationContext* opCtx,
const auto shouldAppendTopologyVersion =
(replCoord->getReplicationMode() == repl::ReplicationCoordinator::modeReplSet &&
isNotMasterError) ||
- (replCoord->inQuiesceMode() && isShutdownError);
+ (isShutdownError && replCoord->inQuiesceMode());
if (!shouldAppendTopologyVersion) {
return;