raffertyyu opened a new pull request, #1878:
URL: https://github.com/apache/kvrocks/pull/1878
fix issue #1864
Added a parampeter to specify the column family that should be compacted.
If `cf` is `nullptr`, it means all `CF`s should be compacted.
This patch also fixed a calculation bug I found in `compaction_checker.cc`
```c++
auto force_compact_min_ratio =
static_cast<double>(storage_->GetConfig()->force_compact_file_min_deleted_percentage
/ 100);
```
The `force_compact_file_min_deleted_percentage` is an interger and must be
between 1 and 100. So the `force_compact_min_ratio` result is always either 0.0
or 1.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]