summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorJordi Olivares Provencio <jordi.olivares-provencio@mongodb.com>2022-10-27 13:43:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-27 14:44:23 +0000
commite79fa3438f0fe33a4e688e29fad0a161a8681523 (patch)
tree4becfd63815c2d813225aa0c6c4a142e1789a4a7 /src/mongo/db/namespace_string.h
parent0a36c400692c54d148c9c38601dff1ce825edb1f (diff)
downloadmongo-e79fa3438f0fe33a4e688e29fad0a161a8681523.tar.gz
SERVER-69820 Simplify Flow control ticket acquisition
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 10f267afe19..4bf5cc78967 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -91,6 +91,9 @@ public:
// Name for the change stream change collection.
static constexpr StringData kChangeCollectionName = "system.change_collection"_sd;
+ // Name for the profile collection
+ static constexpr StringData kSystemDotProfileCollectionName = "system.profile"_sd;
+
// Names of privilege document collections
static constexpr StringData kSystemUsers = "system.users"_sd;
static constexpr StringData kSystemRoles = "system.roles"_sd;
@@ -453,7 +456,7 @@ public:
return db() == kLocalDb;
}
bool isSystemDotProfile() const {
- return coll() == "system.profile";
+ return coll() == kSystemDotProfileCollectionName;
}
bool isSystemDotViews() const {
return coll() == kSystemDotViewsCollectionName;