You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If transaction can't be automatically committed, roll it back to prevent transaction staying open past the lifetime of the Transaction object
Fixesrusqlite#366
When sqlite is used from multiple processes at the same time,
COMMIT
may fail with "database is locked" error.After that happens, all subsequent transactions in rusqlite fail with "cannot start a transaction within a transaction".
I think this is because:
Sets
self.committed = true;
without checking whether commit has succeeded, and whenCOMMIT
fails, the transaction remains open — forever.It should probably be:
The text was updated successfully, but these errors were encountered: