kv: Mutex::Locker -> std::lock_guard

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-10-16 14:11:21 -05:00
parent 993db49e20
commit 209ec5d4ec
2 changed files with 2 additions and 2 deletions

View File

@ -409,7 +409,7 @@ void LevelDBStore::compact_thread_entry()
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

View File

@ -1213,7 +1213,7 @@ void RocksDBStore::compact_thread_entry()
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