summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
authorDianna Hohensee <dianna.hohensee@10gen.com>2017-06-02 16:26:32 -0400
committerDianna Hohensee <dianna.hohensee@10gen.com>2017-06-15 09:18:13 -0400
commit9c3099ca1e4a33af44771543626601ab3eab8750 (patch)
tree6888bab241972834774a0678faa78674195e268b /src/mongo/db/namespace_string.cpp
parent59ea14f97808e343a4a10a1b5352b7096b695e38 (diff)
downloadmongo-9c3099ca1e4a33af44771543626601ab3eab8750.tar.gz
SERVER-27713 create an OpObserver for shard chunk metadata updates
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index 0e195ee7870..c41e4b91bb6 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -72,7 +72,7 @@ const string escapeTable[256] = {
".240", ".241", ".242", ".243", ".244", ".245", ".246", ".247", ".248", ".249", ".250", ".251",
".252", ".253", ".254", ".255"};
-const char kConfigCollection[] = "admin.system.version";
+const char kServerConfiguration[] = "admin.system.version";
const char kLogicalTimeKeysCollection[] = "admin.system.keys";
constexpr auto listCollectionsCursorCol = "$cmd.listCollections"_sd;
@@ -91,7 +91,7 @@ bool legalClientSystemNS(StringData ns) {
if (ns == "admin.system.roles")
return true;
- if (ns == kConfigCollection)
+ if (ns == kServerConfiguration)
return true;
if (ns == kLogicalTimeKeysCollection)
return true;
@@ -113,8 +113,9 @@ constexpr StringData NamespaceString::kAdminDb;
constexpr StringData NamespaceString::kLocalDb;
constexpr StringData NamespaceString::kConfigDb;
constexpr StringData NamespaceString::kSystemDotViewsCollectionName;
+constexpr StringData NamespaceString::kShardConfigCollectionsCollectionName;
-const NamespaceString NamespaceString::kConfigCollectionNamespace(kConfigCollection);
+const NamespaceString NamespaceString::kServerConfigurationNamespace(kServerConfiguration);
bool NamespaceString::isListCollectionsCursorNS() const {
return coll() == listCollectionsCursorCol;