diff options
author | Dan Larkin-York <dan.larkin-york@mongodb.com> | 2021-06-07 19:01:58 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-07 19:35:57 +0000 |
commit | 2612eb6e1d42c9704c63e13255148e10ecfca258 (patch) | |
tree | 597518719986e6aa325b7cb87c9e52b80f3381ab /src/mongo/db/timeseries/bucket_catalog.h | |
parent | 0fec5e0d4364d00d30ecb3493c611e9f325bbf9a (diff) | |
download | mongo-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.h | 4 |
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; |