Skip to content

YYKVStorage 目录问题 #600

@BuddyLiu

Description

@BuddyLiu

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions