diff options
author | Rishab Joshi <rishab.joshi@mongodb.com> | 2022-05-19 21:11:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-19 22:11:46 +0000 |
commit | f76ed79b1fe31c0f22bad3590699c2658638681d (patch) | |
tree | 67d6f80fb31c50c0ee975716d22db4b2d97e884a /src/mongo/db/namespace_string.h | |
parent | b677715bb9e970f2ef84063d97e38e2cb95c48de (diff) | |
download | mongo-f76ed79b1fe31c0f22bad3590699c2658638681d.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; |