summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_sharding_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.cpp')
-rw-r--r--src/mongo/db/s/collection_sharding_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/collection_sharding_state.cpp b/src/mongo/db/s/collection_sharding_state.cpp
index 0c4e6a1b70d..25f2727ff55 100644
--- a/src/mongo/db/s/collection_sharding_state.cpp
+++ b/src/mongo/db/s/collection_sharding_state.cpp
@@ -418,7 +418,7 @@ void CollectionShardingState::_onConfigRefreshCompleteInvalidateCachedMetadataAn
// Extract which collection entry is being updated
std::string refreshCollection;
fassertStatusOK(
- 40477, bsonExtractStringField(query, ShardCollectionType::uuid.name(), &refreshCollection));
+ 40477, bsonExtractStringField(query, ShardCollectionType::ns.name(), &refreshCollection));
// Parse the '$set' update, which will contain the 'lastRefreshedCollectionVersion' if it is
// present.
@@ -443,7 +443,7 @@ void CollectionShardingState::_onConfigDeleteInvalidateCachedMetadataAndNotify(
// Extract which collection entry is being deleted from the _id field.
std::string deletedCollection;
fassertStatusOK(
- 40479, bsonExtractStringField(query, ShardCollectionType::uuid.name(), &deletedCollection));
+ 40479, bsonExtractStringField(query, ShardCollectionType::ns.name(), &deletedCollection));
opCtx->recoveryUnit()->registerChange(
new CollectionVersionLogOpHandler(opCtx, NamespaceString(deletedCollection)));