-
Notifications
You must be signed in to change notification settings - Fork 77
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
esqlite return "error = 21" #87
Comments
Could it be SQLITE_MISUSE? #define SQLITE_MISUSE 21 /* Library used incorrectly */ That can happen when a connection is shared between multiple processes/threads. Or that a query was already done or errored earlier. Before 0.8 every connection had its own associated os level thread. It looks like you were already using the never version which uses dirty schedulers. The later releases have been small fixes, and sqlite version updates. |
With version > 0.8 you must be really sure to serialize requests to SQLite. The plus side is that connections are now much more light weight. |
@mmzeeman thanks a lot, that was it. The new version is much faster and the process who opens the DB originally closes it earlier than before. |
👍 Thanks for your reply... It is always nice to hear from people using this library. |
Hi @mmzeeman
We switched to the latest
esqlite
version yesterday (we were previously using0.8.6
for years) and we started getting the following error:This happens sporadically and under almost no load (not even during concurrent writes).
Do you have any idea what can lead to this?
Many thanks
The text was updated successfully, but these errors were encountered: