mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 16:33:53 +01:00
ircd::db: Compact range options package.
This commit is contained in:
parent
62874ff498
commit
a2892356d1
1 changed files with 4 additions and 2 deletions
|
@ -9268,9 +9268,11 @@ ircd::db::compact(column &column,
|
|||
};
|
||||
|
||||
rocksdb::CompactRangeOptions opts;
|
||||
opts.change_level = to_level >= -1;
|
||||
opts.target_level = std::max(to_level, -1);
|
||||
opts.exclusive_manual_compaction = true;
|
||||
opts.allow_write_stall = true;
|
||||
opts.change_level = true;
|
||||
opts.target_level = std::max(to_level, -1);
|
||||
opts.bottommost_level_compaction = rocksdb::BottommostLevelCompaction::kForce;
|
||||
|
||||
const ctx::uninterruptible ui;
|
||||
const std::lock_guard<decltype(write_mutex)> lock{write_mutex};
|
||||
|
|
Loading…
Reference in a new issue