diff options
Diffstat (limited to 'src/mongo/db/views/resolved_view.h')
-rw-r--r-- | src/mongo/db/views/resolved_view.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mongo/db/views/resolved_view.h b/src/mongo/db/views/resolved_view.h index c0b3ae3d503..82238556288 100644 --- a/src/mongo/db/views/resolved_view.h +++ b/src/mongo/db/views/resolved_view.h @@ -48,12 +48,14 @@ public: std::vector<BSONObj> pipeline, BSONObj defaultCollation, boost::optional<TimeseriesOptions> timeseriesOptions = boost::none, - boost::optional<bool> timeseriesMayContainMixedData = boost::none) + boost::optional<bool> timeseriesMayContainMixedData = boost::none, + boost::optional<bool> timeseriesUsesExtendedRange = boost::none) : _namespace(collectionNs), _pipeline(std::move(pipeline)), _defaultCollation(std::move(defaultCollation)), _timeseriesOptions(timeseriesOptions), - _timeseriesMayContainMixedData(timeseriesMayContainMixedData) {} + _timeseriesMayContainMixedData(timeseriesMayContainMixedData), + _timeseriesUsesExtendedRange(timeseriesUsesExtendedRange) {} static ResolvedView fromBSON(const BSONObj& commandResponseObj); @@ -80,6 +82,8 @@ public: static constexpr auto code = ErrorCodes::CommandOnShardedViewNotSupportedOnMongod; static constexpr StringData kTimeseriesMayContainMixedData = "timeseriesMayContainMixedData"_sd; static constexpr StringData kTimeseriesOptions = "timeseriesOptions"_sd; + static constexpr StringData kTimeseriesUsesExtendedRange = "timeseriesUsesExtendedRange"_sd; + void serialize(BSONObjBuilder* bob) const final; static std::shared_ptr<const ErrorExtraInfo> parse(const BSONObj&); @@ -97,6 +101,7 @@ private: boost::optional<TimeseriesOptions> _timeseriesOptions; boost::optional<bool> _timeseriesMayContainMixedData; + boost::optional<bool> _timeseriesUsesExtendedRange; }; } // namespace mongo |