summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.h
diff options
context:
space:
mode:
authorRishab Joshi <rishab.joshi@mongodb.com>2022-05-29 07:50:23 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-29 08:19:12 +0000
commitb42b9f28708408fc8fbb03c7b0530148dc9d57dc (patch)
tree4c8968f598be3fe85864dbb137aed2cbec163fbb /src/mongo/db/namespace_string.h
parentb154f8ea0332b8829f2c7f46a8ea84c2b86f3a45 (diff)
downloadmongo-b42b9f28708408fc8fbb03c7b0530148dc9d57dc.tar.gz
SERVER-66123 Introduce logic to write to the change collection in the primary.
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r--src/mongo/db/namespace_string.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h
index 687fb431bb1..dd6842974f0 100644
--- a/src/mongo/db/namespace_string.h
+++ b/src/mongo/db/namespace_string.h
@@ -77,7 +77,7 @@ public:
static constexpr StringData kSystemDotViewsCollectionName = "system.views"_sd;
// Name for the change stream change collection.
- static constexpr StringData kChangeStreamChangeCollection = "system.change_collection"_sd;
+ static constexpr StringData kChangeCollectionName = "system.change_collection"_sd;
// Names of privilege document collections
static constexpr StringData kSystemUsers = "system.users"_sd;
@@ -384,9 +384,6 @@ public:
bool isSystemDotProfile() const {
return coll() == "system.profile";
}
- bool isChangeCollection() const {
- return (db() == kConfigDb) && coll().startsWith("changes.");
- }
bool isSystemDotViews() const {
return coll() == kSystemDotViewsCollectionName;
}
@@ -461,7 +458,7 @@ public:
/**
* Returns whether the specified namespace is config.system.changeCollection.
*/
- bool isChangeStreamChangeCollection() const;
+ bool isChangeCollection() const;
/**
* Returns whether the specified namespace is config.image_collection.