summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/commands/cluster_write_cmd.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/s/commands/cluster_write_cmd.cpp b/src/mongo/s/commands/cluster_write_cmd.cpp
index 2343ce2c6d6..3d75dcc9eaf 100644
--- a/src/mongo/s/commands/cluster_write_cmd.cpp
+++ b/src/mongo/s/commands/cluster_write_cmd.cpp
@@ -511,13 +511,7 @@ bool ClusterWriteCmd::InvocationBase::runImpl(OperationContext* opCtx,
// The batched request will only have WC if it was supplied by the client. Otherwise, the
// batched request should use the WC from the opCtx.
if (!batchedRequest.hasWriteConcern()) {
- if (opCtx->getWriteConcern().usedDefaultConstructedWC) {
- // Pass writeConcern: {}, rather than {w: 1, wtimeout: 0}, so as to not override the
- // configsvr w:majority upconvert.
- batchedRequest.setWriteConcern(BSONObj());
- } else {
- batchedRequest.setWriteConcern(opCtx->getWriteConcern().toBSON());
- }
+ batchedRequest.setWriteConcern(opCtx->getWriteConcern().toBSON());
}
// Write ops are never allowed to have writeConcern inside transactions. Normally