summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/bucket_catalog.h
diff options
context:
space:
mode:
authorDan Larkin-York <dan.larkin-york@mongodb.com>2021-06-07 19:01:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-07 19:35:57 +0000
commit2612eb6e1d42c9704c63e13255148e10ecfca258 (patch)
tree597518719986e6aa325b7cb87c9e52b80f3381ab /src/mongo/db/timeseries/bucket_catalog.h
parent0fec5e0d4364d00d30ecb3493c611e9f325bbf9a (diff)
downloadmongo-2612eb6e1d42c9704c63e13255148e10ecfca258.tar.gz
SERVER-57046 Fix concurrency issue with bucket state management
Diffstat (limited to 'src/mongo/db/timeseries/bucket_catalog.h')
-rw-r--r--src/mongo/db/timeseries/bucket_catalog.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/timeseries/bucket_catalog.h b/src/mongo/db/timeseries/bucket_catalog.h
index 84f80c2bfe3..2a9501c25b2 100644
--- a/src/mongo/db/timeseries/bucket_catalog.h
+++ b/src/mongo/db/timeseries/bucket_catalog.h
@@ -550,7 +550,9 @@ private:
const TimeseriesOptions& options,
ExecutionStats* stats,
const Date_t& time);
- BucketAccess(BucketCatalog* catalog, Bucket* bucket);
+ BucketAccess(BucketCatalog* catalog,
+ Bucket* bucket,
+ boost::optional<BucketState> targetState = boost::none);
~BucketAccess();
bool isLocked() const;