diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2022-05-21 16:49:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-21 17:17:31 +0000 |
commit | 85573be23d02bb95a38cf314294abbfc57b71c38 (patch) | |
tree | d97588780ff9a64c327ccb54e40bc8f9fe659ff6 /src/mongo/db/namespace_string.h | |
parent | 18ec8376222bd7afe8485441af2c3aba3130ea2e (diff) | |
download | mongo-85573be23d02bb95a38cf314294abbfc57b71c38.tar.gz |
SERVER-65209 Skeleton code to create change collection.
Diffstat (limited to 'src/mongo/db/namespace_string.h')
-rw-r--r-- | src/mongo/db/namespace_string.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/namespace_string.h b/src/mongo/db/namespace_string.h index 38606ae3d4f..692d768dcca 100644 --- a/src/mongo/db/namespace_string.h +++ b/src/mongo/db/namespace_string.h @@ -76,6 +76,9 @@ public: // Name for the system views collection static constexpr StringData kSystemDotViewsCollectionName = "system.views"_sd; + // Name for the change stream change collection. + static constexpr StringData kChangeStreamChangeCollection = "system.change_collection"_sd; + // Names of privilege document collections static constexpr StringData kSystemUsers = "system.users"_sd; static constexpr StringData kSystemRoles = "system.roles"_sd; @@ -456,6 +459,11 @@ public: bool isChangeStreamPreImagesCollection() const; /** + * Returns whether the specified namespace is config.system.changeCollection. + */ + bool isChangeStreamChangeCollection() const; + + /** * Returns whether the specified namespace is config.image_collection. */ bool isConfigImagesCollection() const; |