0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::db: Remove the write lock during manual range compaction.

This commit is contained in:
Jason Volk 2018-12-15 23:08:07 -08:00
parent d754af2f18
commit d6e05aa826

View file

@ -9402,9 +9402,6 @@ ircd::db::compact(column &column,
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};
// Save and restore the existing filter callback so we can allow our
// caller to use theirs. Note that this manual compaction should be
// exclusive for this column (no background compaction should be