summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/timeseries_options.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/timeseries/timeseries_options.h')
-rw-r--r--src/mongo/db/timeseries/timeseries_options.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mongo/db/timeseries/timeseries_options.h b/src/mongo/db/timeseries/timeseries_options.h
index feaf7e3cd33..87bf4387473 100644
--- a/src/mongo/db/timeseries/timeseries_options.h
+++ b/src/mongo/db/timeseries/timeseries_options.h
@@ -53,16 +53,16 @@ boost::optional<TimeseriesOptions> getTimeseriesOptions(OperationContext* opCtx,
*/
int getMaxSpanSecondsFromGranularity(BucketGranularityEnum granularity);
-/**
- * Returns the number of seconds used to round down the bucket ID and control.min timestamp.
- */
-int getBucketRoundingSecondsFromGranularity(BucketGranularityEnum granularity);
-
StatusWith<std::pair<TimeseriesOptions, bool>> applyTimeseriesOptionsModifications(
const TimeseriesOptions& current, const BSONObj& mod);
BSONObj generateViewPipeline(const TimeseriesOptions& options, bool asArray);
bool optionsAreEqual(const TimeseriesOptions& option1, const TimeseriesOptions& option2);
+
+/**
+ * Rounds down timestamp to the specified granularity.
+ */
+Date_t roundTimestampToGranularity(const Date_t& time, BucketGranularityEnum granularity);
} // namespace timeseries
} // namespace mongo