summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_is_master_cmd.cpp
diff options
context:
space:
mode:
authorA. Jesse Jiryu Davis <jesse@mongodb.com>2020-06-05 15:13:14 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-06-05 20:04:47 +0000
commit84033d0077d507491a6a80c2e1140bf6fd4055dc (patch)
tree4bb6c0b0b39ba8c402320a49ffa14e26ab44feca /src/mongo/s/commands/cluster_is_master_cmd.cpp
parent274b30c62675eb3f04f22e90f76f7891041d9147 (diff)
downloadmongo-84033d0077d507491a6a80c2e1140bf6fd4055dc.tar.gz
SERVER-48393 Exclude awaitable isMaster from serverStatus latency metrics
Diffstat (limited to 'src/mongo/s/commands/cluster_is_master_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_is_master_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_is_master_cmd.cpp b/src/mongo/s/commands/cluster_is_master_cmd.cpp
index 4cc586185d4..778ec8aae17 100644
--- a/src/mongo/s/commands/cluster_is_master_cmd.cpp
+++ b/src/mongo/s/commands/cluster_is_master_cmd.cpp
@@ -140,6 +140,9 @@ public:
Milliseconds(maxAwaitTimeMS);
LOGV2_DEBUG(23871, 3, "Using maxAwaitTimeMS for awaitable isMaster protocol.");
+
+ // Awaitable isMaster commands have high latency by design. Ignore them.
+ opCtx->setShouldIncrementLatencyStats(false);
} else {
uassert(51760,
(topologyVersionElement