mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
ircd::db: Allow < -1 target level to indicate no level change at all.
This commit is contained in:
parent
8e11620100
commit
a03d28c6a1
1 changed files with 1 additions and 1 deletions
|
@ -9152,7 +9152,7 @@ ircd::db::compact(column &column,
|
|||
};
|
||||
|
||||
rocksdb::CompactRangeOptions opts;
|
||||
opts.change_level = true;
|
||||
opts.change_level = to_level >= -1;
|
||||
opts.target_level = std::max(to_level, -1);
|
||||
opts.allow_write_stall = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue