diff options
author | Geert Bosch <geert@mongodb.com> | 2017-07-08 00:24:03 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2017-07-15 00:01:56 -0400 |
commit | d8afe01c37aa24bef255e8aea4ec6882df71b1dd (patch) | |
tree | c297b30392697b1b787d2dd85f091815b049f6f8 /src/mongo/db/namespace_string.h | |
parent | 0ab663b51573a870436a3b474d6fc753514b5ae1 (diff) | |
download | mongo-d8afe01c37aa24bef255e8aea4ec6882df71b1dd.tar.gz |
SERVER-30106 Allow syncTail replication to write to drop-pending collections
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 24abea86771..5572eaab886 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -43,11 +43,6 @@ 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" @@ -227,6 +222,12 @@ 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. |