Unverified Commit 3fcbc2b3 authored by yiwu-arbug's avatar yiwu-arbug Committed by GitHub

Fix gc_picker (#144) (#146)

Signed-off-by: 's avatarliumh8 <571621369@qq.com>

Fixes #144 
parent 4dc4ba89
...@@ -66,7 +66,9 @@ std::unique_ptr<BlobGC> BasicBlobGCPicker::PickBlobGC( ...@@ -66,7 +66,9 @@ std::unique_ptr<BlobGC> BasicBlobGCPicker::PickBlobGC(
"got batch size %" PRIu64 ", estimate output %" PRIu64 "got batch size %" PRIu64 ", estimate output %" PRIu64
" bytes", " bytes",
batch_size, estimate_output_size); batch_size, estimate_output_size);
if (blob_files.empty() || batch_size < cf_options_.min_gc_batch_size) { if (blob_files.empty() ||
(batch_size < cf_options_.min_gc_batch_size &&
estimate_output_size < cf_options_.blob_file_target_size)) {
return nullptr; return nullptr;
} }
// if there is only one small file to merge, no need to perform // if there is only one small file to merge, no need to perform
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment