diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-04-07 19:16:02 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2017-04-12 08:57:13 -0400 |
commit | 46226e01c922c0dc239c0bd37da2b101dfb55f39 (patch) | |
tree | bbb15ac343542b4842551e9a8010928d0604e109 /src/mongo/s/commands/cluster_db_stats_cmd.cpp | |
parent | 58b17add9972a3763699c1cf72560e8bbf0da185 (diff) | |
download | mongo-46226e01c922c0dc239c0bd37da2b101dfb55f39.tar.gz |
SERVER-28701 Make mongos translate queryOptions into readPreference
This is prep for removing the queryOptions flag from Command::run()
Diffstat (limited to 'src/mongo/s/commands/cluster_db_stats_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_db_stats_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_db_stats_cmd.cpp b/src/mongo/s/commands/cluster_db_stats_cmd.cpp index 8ee8ace9b00..d5f128adb32 100644 --- a/src/mongo/s/commands/cluster_db_stats_cmd.cpp +++ b/src/mongo/s/commands/cluster_db_stats_cmd.cpp @@ -70,8 +70,7 @@ public: std::string& errmsg, BSONObjBuilder& output) override { auto requests = buildRequestsForAllShards(opCtx, cmdObj); - auto swResponses = - gatherResponsesFromShards(opCtx, dbName, cmdObj, options, requests, &output); + auto swResponses = gatherResponsesFromShards(opCtx, dbName, cmdObj, requests, &output); if (!swResponses.isOK()) { // We failed to obtain a response or error from all shards. return appendCommandStatus(output, swResponses.getStatus()); |