Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

疑似发现了fdb_kvdb.c的概念错误? #328

Open
littlewhitezkz opened this issue Nov 1, 2024 · 2 comments
Open

疑似发现了fdb_kvdb.c的概念错误? #328

littlewhitezkz opened this issue Nov 1, 2024 · 2 comments

Comments

@littlewhitezkz
Copy link

原文:fdb_kvdb.c

line1809        db->sector_cache_table[i].empty_kv = FAILED_ADDR;
line1810        db->sector_cache_table[i].addr = FDB_DATA_UNUSED;

也许应该修改为

line1809        db->sector_cache_table[i].empty_kv =FDB_DATA_UNUSED ;
line1810        db->sector_cache_table[i].addr = FAILED_ADDR;

并不影响使用。

@armink
Copy link
Owner

armink commented Nov 1, 2024

可以提个 PR 哈

@littlewhitezkz
Copy link
Author

可以提个 PR 哈

朱工您写的没有问题,是我的理解失误。这两个概念分别是获取地址失败,和缓存表(Cache)该项未使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants