armink / FlashDB

An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.1版本初始化KVDB时重复上锁

innovak opened this issue · comments

2.1版本中:fdb_kvdb_init()在fdb_kvdb.c:1763行锁定了数据库,在1800行调用_fdb_kv_load(),后者在1649行再次锁定了数据库.似乎混淆了KVDB和cache的锁?

I wanted to update to the new version, but I encountered the same error. Are there any fixes?

确实,_fdb_kv_load 里的锁可以移除掉了呢,毕竟外面有锁了

你方便提交一个 PR 吗?

I wanted to update to the new version, but I encountered the same error. Are there any fixes?

This issue seems to be a code simplification, but it will not affect the functionality.

确实,_fdb_kv_load 里的锁可以移除掉了呢,毕竟外面有锁了

你方便提交一个 PR 吗?

这边网络不太方便,您来修改吧.

最新版本已更新