summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops
diff options
context:
space:
mode:
authorJordi Olivares Provencio <jordi.olivares-provencio@mongodb.com>2022-04-26 08:54:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-26 09:50:50 +0000
commitc9d4924f3b0628166bac7a464f78f3addefacd3b (patch)
tree88a540820599a55e4b6797d53dbecd68146bf5e1 /src/mongo/db/ops
parentf842e0f0595acc9aee90baf9d4695970ca4bccd9 (diff)
downloadmongo-c9d4924f3b0628166bac7a464f78f3addefacd3b.tar.gz
SERVER-65426 Verify if there's an existing view when creating a collection
Diffstat (limited to 'src/mongo/db/ops')
-rw-r--r--src/mongo/db/ops/write_ops_exec.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/ops/write_ops_exec.cpp b/src/mongo/db/ops/write_ops_exec.cpp
index d1afdc8dde9..683e11d4d70 100644
--- a/src/mongo/db/ops/write_ops_exec.cpp
+++ b/src/mongo/db/ops/write_ops_exec.cpp
@@ -238,8 +238,7 @@ void makeCollection(OperationContext* opCtx, const NamespaceString& ns) {
assertCanWrite_inlock(opCtx, ns);
if (!CollectionCatalog::get(opCtx)->lookupCollectionByNamespace(
- opCtx,
- ns)) { // someone else may have beat us to it.
+ opCtx, ns)) { // someone else may have beat us to it.
uassertStatusOK(userAllowedCreateNS(opCtx, ns));
OperationShardingState::ScopedAllowImplicitCollectionCreate_UNSAFE
unsafeCreateCollection(opCtx);