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) {