Signed-off-by: Sage Weil <sage@redhat.com>
void LevelDBStore::compact_range_async(const string& start, const string& end)
{
- Mutex::Locker l(compact_queue_lock);
+ std::lock_guard l(compact_queue_lock);
// try to merge adjacent ranges. this is O(n), but the queue should
// be short. note that we do not cover all overlap cases and merge
void RocksDBStore::compact_range_async(const string& start, const string& end)
{
- Mutex::Locker l(compact_queue_lock);
+ std::lock_guard l(compact_queue_lock);
// try to merge adjacent ranges. this is O(n), but the queue should
// be short. note that we do not cover all overlap cases and merge