diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_db_stats_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_db_stats_cmd.cpp | 7 |
1 files changed, 5 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 297638e424d..b1dcb07e491 100644 --- a/src/mongo/s/commands/cluster_db_stats_cmd.cpp +++ b/src/mongo/s/commands/cluster_db_stats_cmd.cpp @@ -68,8 +68,11 @@ public: const BSONObj& cmdObj, std::string& errmsg, BSONObjBuilder& output) override { - auto shardResponses = uassertStatusOK( - scatterGather(opCtx, dbName, cmdObj, ReadPreferenceSetting::get(opCtx))); + auto shardResponses = + uassertStatusOK(scatterGather(opCtx, + dbName, + filterCommandRequestForPassthrough(cmdObj), + ReadPreferenceSetting::get(opCtx))); if (!appendRawResponses(opCtx, &errmsg, &output, shardResponses)) { return false; } |