mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +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;
|
rocksdb::CompactRangeOptions opts;
|
||||||
opts.change_level = true;
|
opts.change_level = to_level >= -1;
|
||||||
opts.target_level = std::max(to_level, -1);
|
opts.target_level = std::max(to_level, -1);
|
||||||
opts.allow_write_stall = true;
|
opts.allow_write_stall = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue