agola/internal/db
Simone Gotti 3297244d5d db: retry on sqlite locked error
Since we are using the shared cache with the lock notify we won't receive
SQLITE_BUSY errors but we could receive SQLITE_LOCKED errors due to deadlocks or
locked tables on concurrent read and write transactions.

This patch catches this kind of errors and retries the tx until maxTxRetries.
2019-07-24 12:20:33 +02:00
..
create.go *: migrate to "golang.org/x/xerrors" 2019-05-23 11:23:14 +02:00
db.go db: retry on sqlite locked error 2019-07-24 12:20:33 +02:00