0
0
Fork 0
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:
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; 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;