summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp b/src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp
index 56cd64d653c..e09c35179f4 100644
--- a/src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp
+++ b/src/mongo/db/pipeline/document_source_change_stream_handle_topology_change.cpp
@@ -82,9 +82,9 @@ bool isShardConfigEvent(const Document& eventDoc) {
// Check whether this event occurred on the config.shards collection.
auto nsObj = eventDoc[DocumentSourceChangeStream::kNamespaceField];
const bool isConfigDotShardsEvent = nsObj["db"_sd].getType() == BSONType::String &&
- nsObj["db"_sd].getStringData() == ShardType::ConfigNS.db() &&
+ nsObj["db"_sd].getStringData() == NamespaceString::kConfigsvrShardsNamespace.db() &&
nsObj["coll"_sd].getType() == BSONType::String &&
- nsObj["coll"_sd].getStringData() == ShardType::ConfigNS.coll();
+ nsObj["coll"_sd].getStringData() == NamespaceString::kConfigsvrShardsNamespace.coll();
// If it isn't from config.shards, treat it as a normal user event.
if (!isConfigDotShardsEvent) {