summaryrefslogtreecommitdiff
path: root/src/mongo/client
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2018-12-26 17:01:19 -0500
committerMathias Stearn <mathias@10gen.com>2018-12-27 19:24:54 -0500
commitf87a2866a0757833bd2ae35cce709c76a00600d8 (patch)
treeb79fb8ea6d8d465853e22a6614c5e9f23be1c4f0 /src/mongo/client
parent83ab0edd12084fc6c65e7241e2c0d5c26a7e2338 (diff)
downloadmongo-f87a2866a0757833bd2ae35cce709c76a00600d8.tar.gz
SERVER-38742 Compute latencyThresholdMicros in 64-bit space
Diffstat (limited to 'src/mongo/client')
-rw-r--r--src/mongo/client/replica_set_monitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/replica_set_monitor.cpp b/src/mongo/client/replica_set_monitor.cpp
index bf93a5e8b80..95c7875460c 100644
--- a/src/mongo/client/replica_set_monitor.cpp
+++ b/src/mongo/client/replica_set_monitor.cpp
@@ -1019,7 +1019,7 @@ SetState::SetState(StringData name,
: name(name.toString()),
consecutiveFailedScans(0),
seedNodes(seedNodes),
- latencyThresholdMicros(serverGlobalParams.defaultLocalThresholdMillis * 1000),
+ latencyThresholdMicros(serverGlobalParams.defaultLocalThresholdMillis * int64_t(1000)),
rand(int64_t(time(0))),
roundRobin(0),
setUri(std::move(uri)),