diff options
author | Blake Oler <blake.oler@mongodb.com> | 2020-08-27 19:26:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-09-02 06:32:58 +0000 |
commit | 52f77e8edb3e422d3329915933c0633a3c09786e (patch) | |
tree | 17940801db8e0eff039cd01c75e4a9aaf37fda3a /src/mongo/s/catalog_cache.cpp | |
parent | 6e40b75f137d4d4abebd5d0f3395bd96549ddc6d (diff) | |
download | mongo-52f77e8edb3e422d3329915933c0633a3c09786e.tar.gz |
SERVER-49568 Thread the CollectionType's ReshardingFields through to the CatalogCache refresh
Diffstat (limited to 'src/mongo/s/catalog_cache.cpp')
-rw-r--r-- | src/mongo/s/catalog_cache.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/s/catalog_cache.cpp b/src/mongo/s/catalog_cache.cpp index c9bc5853f62..a3d87fc598c 100644 --- a/src/mongo/s/catalog_cache.cpp +++ b/src/mongo/s/catalog_cache.cpp @@ -107,7 +107,8 @@ std::shared_ptr<RoutingTableHistory> refreshCollectionRoutingInfo( if (existingRoutingInfo && existingRoutingInfo->getVersion().epoch() == collectionAndChunks.epoch) { - return existingRoutingInfo->makeUpdated(collectionAndChunks.changedChunks); + return existingRoutingInfo->makeUpdated(std::move(collectionAndChunks.reshardingFields), + collectionAndChunks.changedChunks); } auto defaultCollator = [&]() -> std::unique_ptr<CollatorInterface> { if (!collectionAndChunks.defaultCollation.isEmpty()) { @@ -123,6 +124,7 @@ std::shared_ptr<RoutingTableHistory> refreshCollectionRoutingInfo( std::move(defaultCollator), collectionAndChunks.shardKeyIsUnique, collectionAndChunks.epoch, + std::move(collectionAndChunks.reshardingFields), collectionAndChunks.changedChunks); }(); |