diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2021-10-04 09:36:24 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-04 10:31:15 +0000 |
commit | f4aa2b0e25976facd7bda02872e2a46205975dcc (patch) | |
tree | 57c4217814fcaee99b02d5dbcb3843e9088f64f2 /src/mongo/s/chunk_manager.cpp | |
parent | 3008af2319af2098f4691612f31a431c52ccc52c (diff) | |
download | mongo-f4aa2b0e25976facd7bda02872e2a46205975dcc.tar.gz |
SERVER-60385 Timeseries fields aren't immutable anymore
Diffstat (limited to 'src/mongo/s/chunk_manager.cpp')
-rw-r--r-- | src/mongo/s/chunk_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/s/chunk_manager.cpp b/src/mongo/s/chunk_manager.cpp index d79a69b7b39..1e954d001b9 100644 --- a/src/mongo/s/chunk_manager.cpp +++ b/src/mongo/s/chunk_manager.cpp @@ -794,6 +794,7 @@ RoutingTableHistory RoutingTableHistory::makeNew( // ShardServerCatalogCacheLoader::_getLoaderMetadata() and copied into the persisted metadata when // it may overlap with the enqueued metadata. RoutingTableHistory RoutingTableHistory::makeUpdated( + boost::optional<TypeCollectionTimeseriesFields> timeseriesFields, boost::optional<TypeCollectionReshardingFields> reshardingFields, boost::optional<uint64_t> maxChunkSizeBytes, bool allowMigrations, @@ -809,7 +810,7 @@ RoutingTableHistory RoutingTableHistory::makeUpdated( getShardKeyPattern().getKeyPattern(), CollatorInterface::cloneCollator(getDefaultCollator()), isUnique(), - _timeseriesFields, + std::move(timeseriesFields), std::move(reshardingFields), maxChunkSizeBytes, allowMigrations, |