diff options
Diffstat (limited to 'src/mongo/db/catalog/collection_impl.cpp')
-rw-r--r-- | src/mongo/db/catalog/collection_impl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/collection_impl.cpp b/src/mongo/db/catalog/collection_impl.cpp index e3d9611515b..69ce18cfd3b 100644 --- a/src/mongo/db/catalog/collection_impl.cpp +++ b/src/mongo/db/catalog/collection_impl.cpp @@ -333,6 +333,8 @@ void CollectionImpl::init(OperationContext* opCtx) { "validatorStatus"_attr = _validator.getStatus()); } + _timeseriesOptions = collectionOptions.timeseries; + if (collectionOptions.clusteredIndex) { _clustered = true; if (collectionOptions.clusteredIndex->getExpireAfterSeconds()) { @@ -1432,6 +1434,10 @@ Status CollectionImpl::updateValidator(OperationContext* opCtx, return Status::OK(); } +boost::optional<TimeseriesOptions> CollectionImpl::getTimeseriesOptions() const { + return _timeseriesOptions; +} + const CollatorInterface* CollectionImpl::getDefaultCollator() const { return _shared->_collator.get(); } |