summaryrefslogtreecommitdiff
path: root/src/mongo/s/client/shard.cpp
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2016-04-27 15:33:37 -0400
committerSpencer T Brody <spencer@mongodb.com>2016-05-02 18:45:07 -0400
commit070f32758b680425b0a6995b881fcb843a7db6cf (patch)
tree41798ea7c75ff3ea956627feefde77f2105371d0 /src/mongo/s/client/shard.cpp
parent7f8861fbb04b9188e793f762fe2cfc01266fcf30 (diff)
downloadmongo-070f32758b680425b0a6995b881fcb843a7db6cf.tar.gz
SERVER-23835 Remove metadata argument from Shard::runCommand
Diffstat (limited to 'src/mongo/s/client/shard.cpp')
-rw-r--r--src/mongo/s/client/shard.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/client/shard.cpp b/src/mongo/s/client/shard.cpp
index 19c49fa7dd6..036405581ca 100644
--- a/src/mongo/s/client/shard.cpp
+++ b/src/mongo/s/client/shard.cpp
@@ -75,10 +75,9 @@ StatusWith<Shard::CommandResponse> Shard::runCommand(OperationContext* txn,
const ReadPreferenceSetting& readPref,
const std::string& dbName,
const BSONObj& cmdObj,
- const BSONObj& metadata,
RetryPolicy retryPolicy) {
for (int retry = 1; retry <= kOnErrorNumRetries; ++retry) {
- auto swCmdResponse = _runCommand(txn, readPref, dbName, cmdObj, metadata);
+ auto swCmdResponse = _runCommand(txn, readPref, dbName, cmdObj);
auto commandStatus = _getEffectiveCommandStatus(swCmdResponse);
if (retry < kOnErrorNumRetries && _isRetriableError(commandStatus.code(), retryPolicy)) {