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_tsl_status_t end_info_stat[2]这里结束信息为啥需要2呢? #298

Open
zbqxyz opened this issue May 21, 2024 · 3 comments
Open

Comments

@zbqxyz
Copy link

zbqxyz commented May 21, 2024

fdb_tsl_status_t end_info_stat[2]这里结束信息为啥需要2呢?

@armink
Copy link
Owner

armink commented May 21, 2024

我记得是为了掉电保护考虑的,有些时候可能保存一半掉电了

@Mason-Zhang-X-C
Copy link
Contributor

image
如果连续掉电, 也就是在同一个sector掉电两次,那么 两个 end_info_stat有可能都是FDB_TSL_PRE_WRITE,是会进入这个ASSERT的吧

@armink
Copy link
Owner

armink commented Aug 2, 2024

image 如果连续掉电, 也就是在同一个sector掉电两次,那么 两个 end_info_stat有可能都是FDB_TSL_PRE_WRITE,是会进入这个ASSERT的吧

是的,这种极端异常还没有做好支持

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

3 participants