mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
kv: Mutex::Locker -> std::lock_guard
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
993db49e20
commit
209ec5d4ec
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user