summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_collection_mod_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_collection_mod_cmd.cpp
parenta0f929889db6566a92200ac3f1f430f1d042862a (diff)
downloadmongo-81238fa87afbe52a9658547f63c79fac126862f1.tar.gz
SERVER-43712 mongos use ReadWriteConcernDefaults for WC
Diffstat (limited to 'src/mongo/s/commands/cluster_collection_mod_cmd.cpp')
-rw-r--r--src/mongo/s/commands/cluster_collection_mod_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_collection_mod_cmd.cpp b/src/mongo/s/commands/cluster_collection_mod_cmd.cpp
index f4091d155c4..247aa8db8aa 100644
--- a/src/mongo/s/commands/cluster_collection_mod_cmd.cpp
+++ b/src/mongo/s/commands/cluster_collection_mod_cmd.cpp
@@ -73,7 +73,8 @@ public:
auto shardResponses = scatterGatherOnlyVersionIfUnsharded(
opCtx,
nss,
- CommandHelpers::filterCommandRequestForPassthrough(cmdObj),
+ applyReadWriteConcern(
+ opCtx, this, CommandHelpers::filterCommandRequestForPassthrough(cmdObj)),
ReadPreferenceSetting::get(opCtx),
Shard::RetryPolicy::kNoRetry);
return appendRawResponses(