[kvdb] remove unused lock.

This commit is contained in:
armink 2023-12-02 19:25:26 +08:00
parent 441d514da2
commit 8056e17f29
1 changed files with 0 additions and 5 deletions

View File

@ -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, &sector, 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;
}