mirror of
https://github.com/armink/FlashDB.git
synced 2025-01-29 04:32:53 +08:00
[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);
|
fdb_kv_set_default(db);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* lock the KV cache */
|
|
||||||
db_lock(db);
|
|
||||||
/* check all sector header for recovery GC */
|
/* check all sector header for recovery GC */
|
||||||
sector_iterator(db, §or, FDB_SECTOR_STORE_UNUSED, db, NULL, check_and_recovery_gc_cb, false);
|
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;
|
db->in_recovery_check = false;
|
||||||
|
|
||||||
/* unlock the KV cache */
|
|
||||||
db_unlock(db);
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user