summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog')
-rw-r--r--src/mongo/db/catalog/collection_catalog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection_catalog.cpp b/src/mongo/db/catalog/collection_catalog.cpp
index aaaf68d6bd3..34665a8f893 100644
--- a/src/mongo/db/catalog/collection_catalog.cpp
+++ b/src/mongo/db/catalog/collection_catalog.cpp
@@ -1271,7 +1271,9 @@ void CollectionCatalog::_ensureNamespaceDoesNotExist(OperationContext* opCtx,
5725003,
"Conflicted registering namespace, already have a view with the same namespace",
"nss"_attr = nss);
- throw WriteConflictException();
+ uasserted(ErrorCodes::NamespaceExists,
+ "Conflicted registering namespace, already have a view with the same "
+ "namespace");
}
}
}