summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/write_commands/write_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/write_commands/write_commands.cpp')
-rw-r--r--src/mongo/db/commands/write_commands/write_commands.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/db/commands/write_commands/write_commands.cpp b/src/mongo/db/commands/write_commands/write_commands.cpp
index 1998e069b86..57b7bdba253 100644
--- a/src/mongo/db/commands/write_commands/write_commands.cpp
+++ b/src/mongo/db/commands/write_commands/write_commands.cpp
@@ -94,9 +94,7 @@ void serializeReply(OperationContext* opCtx,
if (continueOnError && !result.results.empty()) {
const auto& lastResult = result.results.back();
- if (lastResult == ErrorCodes::StaleConfig ||
- lastResult == ErrorCodes::CannotImplicitlyCreateCollection ||
- lastResult == ErrorCodes::StaleDbVersion) {
+ if (lastResult == ErrorCodes::StaleConfig || lastResult == ErrorCodes::StaleDbVersion) {
// For ordered:false commands we need to duplicate these error results for all ops
// after we stopped. See handleError() in write_ops_exec.cpp for more info.
auto err = result.results.back();