Retry up to NTRIES times in get_pragma() when sqlite fails with SQLITE_BUSY. This function is called outside of a transaction and so isn't handled by the retries in pkgdb_transaction_begin().
modified libpkg/pkgdb.c
@@ -3087,6 +3087,7 @@ get_pragma(sqlite3 *s, const char *sql, int64_t *res, bool silence)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -3097,7 +3098,12 @@ get_pragma(sqlite3 *s, const char *sql, int64_t *res, bool silence)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|