diff options
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 5572eaab886..24abea86771 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -43,6 +43,11 @@ namespace mongo { const size_t MaxDatabaseNameLen = 128; // max str len for the db name, including null char +/** @return true if a client can modify this namespace even though it is under ".system." + For example <dbname>.system.users is ok for regular clients to update. +*/ +bool legalClientSystemNS(StringData ns); + /* e.g. NamespaceString ns("acme.orders"); cout << ns.coll; // "orders" @@ -222,12 +227,6 @@ public: bool isListIndexesCursorNS() const; /** - * Returns true if a client can modify this namespace even though it is under ".system." - * For example <dbname>.system.users is ok for regular clients to update. - */ - bool isLegalClientSystemNS() const; - - /** * Given a NamespaceString for which isGloballyManagedNamespace() returns true, returns the * namespace the command targets, or boost::none for commands like 'listCollections' which * do not target a collection. |