summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2017-07-08 00:24:03 -0400
committerGeert Bosch <geert@mongodb.com>2017-07-15 00:01:56 -0400
commitd8afe01c37aa24bef255e8aea4ec6882df71b1dd (patch)
treec297b30392697b1b787d2dd85f091815b049f6f8 /src/mongo/db/namespace_string.h
parent0ab663b51573a870436a3b474d6fc753514b5ae1 (diff)
downloadmongo-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.h11
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.