[kvdb] remove unused lock.
This commit is contained in:
parent
441d514da2
commit
8056e17f29
|
@ -1645,8 +1645,6 @@ static fdb_err_t _fdb_kv_load(fdb_kvdb_t db)
|
|||
fdb_kv_set_default(db);
|
||||
}
|
||||
|
||||
/* lock the KV cache */
|
||||
db_lock(db);
|
||||
/* check all sector header for recovery GC */
|
||||
sector_iterator(db, §or, FDB_SECTOR_STORE_UNUSED, db, NULL, check_and_recovery_gc_cb, false);
|
||||
|
||||
|
@ -1660,9 +1658,6 @@ __retry:
|
|||
|
||||
db->in_recovery_check = false;
|
||||
|
||||
/* unlock the KV cache */
|
||||
db_unlock(db);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue