diff options
author | Sergi Mateo Bellido <sergi.mateo-bellido@mongodb.com> | 2021-04-15 04:51:31 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-21 04:43:37 +0000 |
commit | 6f17871c955dbf98a5ffcd27dab2390d90b875d1 (patch) | |
tree | 5a13489c3a7aa7ac11d762222d4357275315d8bd /src/mongo/db/s/collection_metadata.h | |
parent | 384c41b1f89412b5843b8546b8ddf4fcb837eff5 (diff) | |
download | mongo-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/db/s/collection_metadata.h')
-rw-r--r-- | src/mongo/db/s/collection_metadata.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h index a742b77726f..79f02080b19 100644 --- a/src/mongo/db/s/collection_metadata.h +++ b/src/mongo/db/s/collection_metadata.h @@ -261,6 +261,11 @@ public: return _cm->getReshardingFields(); } + const boost::optional<TypeCollectionTimeseriesFields>& getTimeseriesFields() const { + invariant(isSharded()); + return _cm->getTimeseriesFields(); + } + private: // The full routing table for the collection or boost::none if the collection is not sharded boost::optional<ChunkManager> _cm; |