From 882ddc023e64cab3d6cf9b97d6427cb560f690e0 Mon Sep 17 00:00:00 2001 From: Dmitri Petrov Date: Fri, 13 Oct 2023 20:45:23 +0000 Subject: [PATCH] [SYS-6354] Fix compilation issues. A couple of minor problems in RocsDB-Cloud that surfaced while trying to enable coroutines. --- cloud/aws/aws_s3.cc | 2 +- db/version_set.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/aws/aws_s3.cc b/cloud/aws/aws_s3.cc index 1eecf7b221f..dc1511fca50 100644 --- a/cloud/aws/aws_s3.cc +++ b/cloud/aws/aws_s3.cc @@ -950,7 +950,7 @@ IOStatus S3StorageProvider::DoGetCloudObject(const std::string& bucket_name, // Close() will be called in the destructor of the object returned by // this factory. Adding an inner scope so that the destructor is called // before checking fileCloseStatus. - auto ioStreamFactory = [=, &fileCloseStatus]() -> Aws::IOStream* { + auto ioStreamFactory = [this, destination, &fileCloseStatus]() -> Aws::IOStream* { FileOptions foptions; foptions.use_direct_writes = cfs_->GetCloudFileSystemOptions().use_direct_io_for_cloud_download; diff --git a/db/version_set.cc b/db/version_set.cc index c2403edcf24..30911871831 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -2715,6 +2715,7 @@ Status Version::ProcessBatch( MultiGetRange file_range = fp.CurrentFileRange(); TableCache::TypedHandle* table_handle = nullptr; bool skip_filters = IsFilterSkipped(static_cast(fp.GetHitFileLevel()), + read_options, fp.IsHitFileLastInLevel()); bool skip_range_deletions = false; if (!skip_filters) {