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

YYKVStorage 目录问题 #600

Open
BuddyLiu opened this issue Mar 14, 2023 · 0 comments
Open

YYKVStorage 目录问题 #600

BuddyLiu opened this issue Mar 14, 2023 · 0 comments

Comments

@BuddyLiu
Copy link

BuddyLiu commented Mar 14, 2023

YYKVStorage的缓存目录由外部传入path参数进行缓存目录创建(line:686),但是缓存目录是很容易被清掉的,因此在写入或读取缓存时不校验数据库文件以及缓存目录,就会存在风险。我在清掉缓存后遇到了下面的错误:

Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=COMMIT TRANSACTION;, error-code=1, error-message=cannot commit - no transaction is active

没有活动的事务,由db文件被意外删除导致。

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

1 participant