diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-07-27 16:19:34 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2016-07-30 09:51:14 -0400 |
commit | 8c326de66475125ce755c52d36340b52f86ac64e (patch) | |
tree | 45ba12e37ddd23212a4df1289da7ea5d0a4557b3 /src/mongo/s/config_server_test_fixture.cpp | |
parent | 1af99e48949f36754e2b877f1057bdaba0b83aea (diff) | |
download | mongo-8c326de66475125ce755c52d36340b52f86ac64e.tar.gz |
SERVER-25050 Set maxTimeMS on OperationContext on mongos
This change makes mongos commands to retrieve the maxTimeMS from the
command and set it on the OperationContext.
Diffstat (limited to 'src/mongo/s/config_server_test_fixture.cpp')
-rw-r--r-- | src/mongo/s/config_server_test_fixture.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/s/config_server_test_fixture.cpp b/src/mongo/s/config_server_test_fixture.cpp index 4ea5df4ebb4..49573d43603 100644 --- a/src/mongo/s/config_server_test_fixture.cpp +++ b/src/mongo/s/config_server_test_fixture.cpp @@ -340,8 +340,12 @@ Status ConfigServerTestFixture::insertToConfigCollection(OperationContext* txn, auto config = getConfigShard(); invariant(config); - auto insertResponse = config->runCommand( - txn, kReadPref, ns.db().toString(), request.toBSON(), Shard::RetryPolicy::kNoRetry); + auto insertResponse = config->runCommand(txn, + kReadPref, + ns.db().toString(), + request.toBSON(), + Shard::kDefaultConfigCommandTimeout, + Shard::RetryPolicy::kNoRetry); BatchedCommandResponse batchResponse; auto status = Shard::CommandResponse::processBatchWriteResponse(insertResponse, &batchResponse); |