summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index b83fe5656aa..12e0c949b13 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -501,8 +501,8 @@ void appendErrorLabelsAndTopologyVersion(OperationContext* opCtx,
const auto replCoord = repl::ReplicationCoordinator::get(opCtx);
// NotPrimary errors always include a topologyVersion, since we increment topologyVersion on
// stepdown. ShutdownErrors only include a topologyVersion if the server is in quiesce mode,
- // since we only increment the topologyVersion at shutdown and alert waiting isMaster commands
- // if the server enters quiesce mode.
+ // since we only increment the topologyVersion at shutdown and alert waiting isMaster/hello
+ // commands if the server enters quiesce mode.
const auto shouldAppendTopologyVersion =
(replCoord->getReplicationMode() == repl::ReplicationCoordinator::modeReplSet &&
isNotPrimaryError) ||