From f76ed79b1fe31c0f22bad3590699c2658638681d Mon Sep 17 00:00:00 2001 From: Rishab Joshi Date: Thu, 19 May 2022 21:11:10 +0000 Subject: SERVER-65209 Skeleton code to create change collection. --- src/mongo/db/namespace_string.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mongo/db/namespace_string.h') 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; @@ -455,6 +458,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. */ -- cgit v1.2.1