summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_db_stats_cmd.cpp
diff options
context:
space:
mode:
authorKevin Pulo <kevin.pulo@mongodb.com>2019-11-06 06:39:27 +0000
committerevergreen <evergreen@mongodb.com>2019-11-06 06:39:27 +0000
commit81238fa87afbe52a9658547f63c79fac126862f1 (patch)
treeb5cecb5cff754360369ff7c2bbb3c23fea10dc38 /src/mongo/s/commands/cluster_db_stats_cmd.cpp
parenta0f929889db6566a92200ac3f1f430f1d042862a (diff)
downloadmongo-81238fa87afbe52a9658547f63c79fac126862f1.tar.gz
SERVER-43712 mongos use ReadWriteConcernDefaults for WC
Diffstat (limited to 'src/mongo/s/commands/cluster_db_stats_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_db_stats_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_db_stats_cmd.cpp b/src/mongo/s/commands/cluster_db_stats_cmd.cpp
index d7d31e5fd55..3408419de95 100644
--- a/src/mongo/s/commands/cluster_db_stats_cmd.cpp
+++ b/src/mongo/s/commands/cluster_db_stats_cmd.cpp
@@ -124,7 +124,8 @@ public:
auto shardResponses = scatterGatherUnversionedTargetAllShards(
opCtx,
dbName,
- CommandHelpers::filterCommandRequestForPassthrough(cmdObj),
+ applyReadWriteConcern(
+ opCtx, this, CommandHelpers::filterCommandRequestForPassthrough(cmdObj)),
ReadPreferenceSetting::get(opCtx),
Shard::RetryPolicy::kIdempotent);
if (!appendRawResponses(opCtx, &errmsg, &output, shardResponses)) {