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 _dbExecute:] line:182 sqlite exec error (5): database is locked #152

Open
jksniper opened this issue Dec 17, 2019 · 1 comment

Comments

@jksniper
Copy link

如题,在对本地缓存异步读取的时候很频繁的发生这样的错误,然后缓存被删,gg。
-[YYKVStorage _dbExecute:] line:182 sqlite exec error (5): database is locked
2019-12-17 11:38:58.225945+0800 xxxxx[389:27234] [logging] BUG IN CLIENT OF libsqlite3.dylib: database integrity compromised by API violation: vnode unlinked while in use: /private/var/mobile/Containers/Data/Application/6A2C58F1-C93F-4B4E-A16A-014532078A6C/Library/Caches/CacheOfChapters/manifest.sqlite-shm

@youngerbyte
Copy link

多线程同时操作同一张表引起,尝试自己加一个全局锁试一下 https://www.jianshu.com/p/6422ae4e06c2

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