diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2020-05-18 08:36:12 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-18 20:36:08 +0000 |
commit | 756ad8eb9c7566b186f8e51ed20e16c21b44b566 (patch) | |
tree | 4b84d17ea2edfb799995b12dc8b80099d7139515 | |
parent | bab691491a8db3419dab5ecd79689d5357f1e0cc (diff) | |
download | mongo-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.cpp | 2 |
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; |