summaryrefslogtreecommitdiff
path: root/src/mongo/db/timeseries/bucket_catalog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/timeseries/bucket_catalog.cpp')
-rw-r--r--src/mongo/db/timeseries/bucket_catalog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/timeseries/bucket_catalog.cpp b/src/mongo/db/timeseries/bucket_catalog.cpp
index cef4bb3a964..9039f1cca62 100644
--- a/src/mongo/db/timeseries/bucket_catalog.cpp
+++ b/src/mongo/db/timeseries/bucket_catalog.cpp
@@ -1428,6 +1428,10 @@ StatusWith<std::unique_ptr<BucketCatalog::Bucket>> BucketCatalog::_rehydrateBuck
std::make_unique<Bucket>(bucketId, stripeNumber, key.hash, &_bucketStateManager);
const bool isCompressed = timeseries::isCompressedBucket(bucketDoc);
+ if (isCompressed) {
+ // TODO (SERVER-69907): Allow opening compressed bucket
+ return Status{ErrorCodes::BadValue, "Reopening uncompressed buckets is not supported yet"};
+ }
// Initialize the remaining member variables from the bucket document.
bucket->setNamespace(ns);