diff options
-rw-r--r-- | lib/backend/sqlite.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/backend/sqlite.c b/lib/backend/sqlite.c index c22a27019..322191f39 100644 --- a/lib/backend/sqlite.c +++ b/lib/backend/sqlite.c @@ -179,9 +179,8 @@ static int sqlite_init(rpmdb rdb, const char * dbhome) int one = 1; /* Annoying but necessary to support non-privileged readers */ sqlite3_file_control(sdb, NULL, SQLITE_FCNTL_PERSIST_WAL, &one); - - if (!rpmExpandNumeric("%{?_flush_io}")) - sqlexec(sdb, "PRAGMA wal_autocheckpoint = 0"); + /* Sqlite default threshold is way too low for rpmdb */ + sqlexec(sdb, "PRAGMA wal_autocheckpoint = 10000"); } } |