-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Description
YYKVStorage的缓存目录由外部传入path参数进行缓存目录创建(line:686),但是缓存目录是很容易被清掉的,因此在写入或读取缓存时不校验数据库文件以及缓存目录,就会存在风险。我在清掉缓存后遇到了下面的错误:
Error: execSQLStatement:onConnection:toCompletionWithRetry:writeLockHelp - SQL=COMMIT TRANSACTION;, error-code=1, error-message=cannot commit - no transaction is active
没有活动的事务,由db文件被意外删除导致。
Metadata
Metadata
Assignees
Labels
No labels