diff options
Diffstat (limited to 'src/mongo/db/commands/clone_collection.cpp')
-rw-r--r-- | src/mongo/db/commands/clone_collection.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/commands/clone_collection.cpp b/src/mongo/db/commands/clone_collection.cpp index af8d26eb518..2a3da6149d7 100644 --- a/src/mongo/db/commands/clone_collection.cpp +++ b/src/mongo/db/commands/clone_collection.cpp @@ -128,9 +128,8 @@ public: // In order to clone a namespace, a user must be allowed to both create and write to that // namespace. There exist namespaces that are legal to create but not write to (e.g. - // system.profile), and there exist namespaces that are legal to write to but not create - // (e.g. system.indexes), so we must check that it is legal to both create and write to the - // namespace. + // system.profile), and there exist namespaces that are legal to write to but not create, + // so we must check that it is legal to both create and write to the namespace. auto allowedCreateStatus = userAllowedCreateNS(dbname, nsToCollectionSubstring(ns)); uassertStatusOK(allowedCreateStatus); auto allowedWriteStatus = userAllowedWriteNS(dbname, nsToCollectionSubstring(ns)); |