0
0
Fork 0
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:
Jason Volk 2018-12-12 15:59:07 -08:00
parent 62874ff498
commit a2892356d1

View file

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