0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-06 10:38:37 +02:00

ircd::db: Allow < -1 target level to indicate no level change at all.

This commit is contained in:
Jason Volk 2018-12-11 16:26:44 -08:00
parent 8e11620100
commit a03d28c6a1

View file

@ -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;