chiark / gitweb /
Infra: Improve db retry handling
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 12:26:43 +0000 (13:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 23 Jun 2015 13:14:10 +0000 (14:14 +0100)
commit5fa6ed1bb3458f5077a46eb0c6516c277d93318c
tree1f9b1570cb64a3155e1a9a63d6ac5d5e12c6a3a2
parent9e3287b0f9611af321b7cb1ca7b7757dbe96cfd2
Infra: Improve db retry handling

Use theh new poldb_setup hook to (a) set up HandleError and (b) run
the DGIT_RPD_TEST_DBLOOP_HOOK.

This is needed because the PRAGMA in poldb_setup can cause a
SQLITE_BUSY error in newer sqlite3, and we want both the HandleError
setup and the hook (which sets a timeout, amongst other things) to
occur before sqlite3 tries to take its lock.
infra/dgit-repos-policy-debian