diff options
author | Geert Bosch <geert@mongodb.com> | 2017-07-15 13:53:13 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2017-07-15 13:53:13 -0400 |
commit | a1c67941bf08c69cab04eba20bc9ce9a763e1c7f (patch) | |
tree | 1eeeb24340e0b20e8a677dcf1298f7ae00f20d4c /src/mongo/db/namespace_string.h | |
parent | d8afe01c37aa24bef255e8aea4ec6882df71b1dd (diff) | |
download | mongo-a1c67941bf08c69cab04eba20bc9ce9a763e1c7f.tar.gz |
Revert "SERVER-30106 Allow syncTail replication to write to drop-pending collections"
This reverts commit d8afe01c37aa24bef255e8aea4ec6882df71b1dd.
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. |