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

Added extra locking to prevent timeouts when writing to the database. #117

Closed
ribbons opened this Issue Aug 22, 2013 · 1 comment

Comments

Projects
None yet
1 participant
@ribbons
Owner

ribbons commented Aug 22, 2013

Original report from Matt Robinson at 11:54:31 on 2010-06-23

In certain situations on some (slower?) hardware, performing a write action (such as storing an image) takes longer than the SQLite 30 second timeout, causing the application to crash.

To resolve this problem, it would be better to wrap all the parts of the data class which perform writes to the database in a lock to prevent this from occurring. This would also simplify the current locking, as there are three different locks for different types of update at the moment.


Imported from Bug 278 in the NerdoftheHerd.com Bugzilla.

@ghost ghost assigned ribbons Aug 22, 2013

@ribbons

This comment has been minimized.

Owner

ribbons commented Aug 22, 2013

Original comment from Matt Robinson at 11:55:34 on 2010-06-23

Implemented by wrapping all database writes in a single lock in ee1b26b.

@ribbons ribbons closed this Aug 22, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment