diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-08 14:19:52 -0500 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-11-11 14:21:42 -0500 |
commit | 481ce654f0b5c4329c8a3fa19d1767bd52b89239 (patch) | |
tree | f67c5b59fc2ce1303efc5632c5509e553f41d25a /src/mongo/s/client/shard_remote.cpp | |
parent | 07562c2fb080a3856fe06a2ff412d06060a6abb7 (diff) | |
download | mongo-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.cpp | 2 |
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); |