summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard_remote.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-11-08 14:19:52 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2016-11-11 14:21:42 -0500
commit481ce654f0b5c4329c8a3fa19d1767bd52b89239 (patch)
treef67c5b59fc2ce1303efc5632c5509e553f41d25a /src/mongo/s/client/shard_remote.cpp
parent07562c2fb080a3856fe06a2ff412d06060a6abb7 (diff)
downloadmongo-481ce654f0b5c4329c8a3fa19d1767bd52b89239.tar.gz
SERVER-26955 Include maxTimeMs when running commands through ShardRemote
Diffstat (limited to 'src/mongo/s/client/shard_remote.cpp')
-rw-r--r--src/mongo/s/client/shard_remote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/client/shard_remote.cpp b/src/mongo/s/client/shard_remote.cpp
index 66392dd4481..85e0bc7678b 100644
--- a/src/mongo/s/client/shard_remote.cpp
+++ b/src/mongo/s/client/shard_remote.cpp
@@ -196,7 +196,7 @@ Shard::HostWithResponse ShardRemote::_runCommand(OperationContext* txn,
const RemoteCommandRequest request(
host.getValue(),
dbName,
- appendMaxTimeToCmdObj(maxTimeMSOverride, cmdObj),
+ appendMaxTimeToCmdObj(requestTimeout, cmdObj),
_appendMetadataForCommand(txn, readPrefWithMinOpTime),
txn,
requestTimeout < Milliseconds::max() ? requestTimeout : RemoteCommandRequest::kNoTimeout);