diff options
author | Kevin Pulo <kevin.pulo@mongodb.com> | 2020-01-16 02:02:52 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-16 02:02:52 +0000 |
commit | ea0f5e7a4517404725aebbad5fb2ec2d53e5aa9f (patch) | |
tree | 376650f14c3f8426e09d50f22dc92f947e24dc22 /src/mongo/s/commands/cluster_drop_cmd.cpp | |
parent | db5e7863b095355aae7a09b127d11de1bed1af33 (diff) | |
download | mongo-ea0f5e7a4517404725aebbad5fb2ec2d53e5aa9f.tar.gz |
SERVER-45098 test that RWC defaults are correctly applied to commands
Diffstat (limited to 'src/mongo/s/commands/cluster_drop_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_drop_cmd.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/s/commands/cluster_drop_cmd.cpp b/src/mongo/s/commands/cluster_drop_cmd.cpp index 3effbb64055..c8ddc7a5dd2 100644 --- a/src/mongo/s/commands/cluster_drop_cmd.cpp +++ b/src/mongo/s/commands/cluster_drop_cmd.cpp @@ -83,8 +83,10 @@ public: opCtx, ReadPreferenceSetting(ReadPreference::PrimaryOnly), "admin", - CommandHelpers::appendMajorityWriteConcern(CommandHelpers::appendPassthroughFields( - cmdObj, BSON("_configsvrDropCollection" << nss.toString()))), + CommandHelpers::appendMajorityWriteConcern( + CommandHelpers::appendPassthroughFields( + cmdObj, BSON("_configsvrDropCollection" << nss.toString())), + opCtx->getWriteConcern()), Shard::RetryPolicy::kIdempotent)); CommandHelpers::filterCommandReplyForPassthrough(cmdResponse.response, &result); |