summaryrefslogtreecommitdiff
path: root/src/mongo/s/catalog_cache_loader.h
diff options
context:
space:
mode:
authorSergi Mateo Bellido <sergi.mateo-bellido@mongodb.com>2021-04-15 04:51:31 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-04-21 04:43:37 +0000
commit6f17871c955dbf98a5ffcd27dab2390d90b875d1 (patch)
tree5a13489c3a7aa7ac11d762222d4357275315d8bd /src/mongo/s/catalog_cache_loader.h
parent384c41b1f89412b5843b8546b8ddf4fcb837eff5 (diff)
downloadmongo-6f17871c955dbf98a5ffcd27dab2390d90b875d1.tar.gz
SERVER-55592 Add time-series fields to sharding catalog
* Adding IDL support to time-series fields + exposing its symbols in some class wrappers * Modifying the CatalogCacheLoader, CatalogCache and the ChunkManager to handle the new timeseries fields * Disallowing operations over sharded time-series collections * Fixing some tests + adding a new one
Diffstat (limited to 'src/mongo/s/catalog_cache_loader.h')
-rw-r--r--src/mongo/s/catalog_cache_loader.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/s/catalog_cache_loader.h b/src/mongo/s/catalog_cache_loader.h
index 76a6d47460e..528ff5519e3 100644
--- a/src/mongo/s/catalog_cache_loader.h
+++ b/src/mongo/s/catalog_cache_loader.h
@@ -72,6 +72,7 @@ public:
const BSONObj& collShardKeyPattern,
const BSONObj& collDefaultCollation,
bool collShardKeyIsUnique,
+ boost::optional<TypeCollectionTimeseriesFields> collTimeseriesFields,
boost::optional<TypeCollectionReshardingFields> collReshardingFields,
bool allowMigrations,
std::vector<ChunkType> chunks);
@@ -85,6 +86,9 @@ public:
BSONObj defaultCollation;
bool shardKeyIsUnique;
+ // This information will be valid if the collection is a time-series buckets collection.
+ boost::optional<TypeCollectionTimeseriesFields> timeseriesFields;
+
// If the collection is currently undergoing a resharding operation, the optional will be
// populated.
boost::optional<TypeCollectionReshardingFields> reshardingFields;