summaryrefslogtreecommitdiff
path: root/src/mongo/db/change_stream_pre_images_collection_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/change_stream_pre_images_collection_manager.cpp')
-rw-r--r--src/mongo/db/change_stream_pre_images_collection_manager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/change_stream_pre_images_collection_manager.cpp b/src/mongo/db/change_stream_pre_images_collection_manager.cpp
index b3794877b63..503c44785b0 100644
--- a/src/mongo/db/change_stream_pre_images_collection_manager.cpp
+++ b/src/mongo/db/change_stream_pre_images_collection_manager.cpp
@@ -497,7 +497,7 @@ size_t ChangeStreamPreImagesCollectionManager::_deleteExpiredPreImagesWithCollSc
// Early exit if the collection doesn't exist or running on a secondary.
if (!preImageColl.exists() ||
!repl::ReplicationCoordinator::get(opCtx)->canAcceptWritesForDatabase(
- opCtx, DatabaseName::kConfig.toString())) {
+ opCtx, DatabaseName::kConfig)) {
return 0;
}
@@ -548,7 +548,7 @@ size_t ChangeStreamPreImagesCollectionManager::_deleteExpiredPreImagesWithCollSc
// Early exit if the collection doesn't exist or running on a secondary.
if (!preImageColl.exists() ||
!repl::ReplicationCoordinator::get(opCtx)->canAcceptWritesForDatabase(
- opCtx, DatabaseName::kConfig.toString())) {
+ opCtx, DatabaseName::kConfig)) {
return 0;
}