summaryrefslogtreecommitdiff
path: root/src/mongo/s/chunk_manager.cpp
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2021-10-04 09:36:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-04 10:31:15 +0000
commitf4aa2b0e25976facd7bda02872e2a46205975dcc (patch)
tree57c4217814fcaee99b02d5dbcb3843e9088f64f2 /src/mongo/s/chunk_manager.cpp
parent3008af2319af2098f4691612f31a431c52ccc52c (diff)
downloadmongo-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.cpp3
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,