diff options
author | Nathan Myers <nathan.myers@10gen.com> | 2017-10-17 14:07:38 -0400 |
---|---|---|
committer | Nathan Myers <nathan.myers@10gen.com> | 2017-10-17 14:07:38 -0400 |
commit | aeabbf96ff3c2990f553ba0a5e6e1d18ebddab2f (patch) | |
tree | cfb67393fadfd03d0c40d5082711da5dfa44edc4 /src/mongo/db/s/collection_sharding_state.cpp | |
parent | bd0c03a8816985f74f7bd24245aa81f9cb5b37f7 (diff) | |
download | mongo-aeabbf96ff3c2990f553ba0a5e6e1d18ebddab2f.tar.gz |
SERVER-31191 Plumb Collection UUIDs through catalog cache
Diffstat (limited to 'src/mongo/db/s/collection_sharding_state.cpp')
-rw-r--r-- | src/mongo/db/s/collection_sharding_state.cpp | 4 |
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))); |