diff options
author | James Wahlin <james@mongodb.com> | 2019-05-02 12:41:45 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2019-05-06 16:05:15 -0400 |
commit | ef84149f7b14e7964b2766e0b4b73160fd53fc54 (patch) | |
tree | 484226f4355383e75f5143e820314788ea07aeb8 /src/mongo/db/ops | |
parent | 2514cb35b8cd08df4c62b5da2ec7441c001935e8 (diff) | |
download | mongo-ef84149f7b14e7964b2766e0b4b73160fd53fc54.tar.gz |
SERVER-40402 Test support for 'writeConcern' option in combination with a pipeline-style update
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r-- | src/mongo/db/ops/write_ops_exec.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/ops/write_ops_exec.cpp b/src/mongo/db/ops/write_ops_exec.cpp index ec959fdb858..8713e718e05 100644 --- a/src/mongo/db/ops/write_ops_exec.cpp +++ b/src/mongo/db/ops/write_ops_exec.cpp @@ -766,14 +766,6 @@ WriteResult performUpdates(OperationContext* opCtx, const write_ops::Update& who out.results.reserve(wholeOp.getUpdates().size()); for (auto&& singleOp : wholeOp.getUpdates()) { - if (singleOp.getU().type() == write_ops::UpdateModification::Type::kPipeline) { - // TODO SERVER-40402: Remove once writeConcern is supported and tested for pipeline - // updates. - uassert(ErrorCodes::NotImplemented, - "writeConcern is not yet supported for pipeline-style updates", - opCtx->getWriteConcern().usedDefault); - } - const auto stmtId = getStmtIdForWriteOp(opCtx, wholeOp, stmtIdIndex++); if (opCtx->getTxnNumber()) { if (!txnParticipant.inMultiDocumentTransaction()) { |