Deal l with temporary contention in pkgdb_transaction_begin() by retrying up to NTRIES times. This avoids "database is locked" failures under contention.
modified libpkg/pkgdb.c
@@ -1069,6 +1069,7 @@ int
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -1091,7 +1092,12 @@ pkgdb_transaction_begin(sqlite3 *sqlite, const char *savepoint)
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|