summaryrefslogtreecommitdiff
path: root/src/mongo
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2019-05-06 14:31:58 -0400
committerJames Wahlin <james@mongodb.com>2019-05-07 12:37:45 -0400
commitbe5df1fab8bd151b5b5405ba4500462c1a1f8db9 (patch)
tree25b4fcbcf8d079e4cf710162854f457248138b6b /src/mongo
parent5fefd5f2b62496867fc0cfbf82a5818caf20e11e (diff)
downloadmongo-be5df1fab8bd151b5b5405ba4500462c1a1f8db9.tar.gz
SERVER-40401 Test support for 'bypassDocumentValidation' option in combination with a pipeline-style findAndModify
Diffstat (limited to 'src/mongo')
-rw-r--r--src/mongo/db/commands/find_and_modify.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mongo/db/commands/find_and_modify.cpp b/src/mongo/db/commands/find_and_modify.cpp
index 32b88949ceb..f0e630e91bb 100644
--- a/src/mongo/db/commands/find_and_modify.cpp
+++ b/src/mongo/db/commands/find_and_modify.cpp
@@ -306,11 +306,6 @@ public:
boost::optional<DisableDocumentValidation> maybeDisableValidation;
if (shouldBypassDocumentValidationForCommand(cmdObj)) {
- // TODO SERVER-40401 Add support for bypassDocumentValidation.
- uassert(ErrorCodes::NotImplemented,
- "No support for pipeline style updates and bypassDocumentValidation",
- !args.getUpdate() ||
- args.getUpdate()->type() != write_ops::UpdateModification::Type::kPipeline);
maybeDisableValidation.emplace(opCtx);
}