Oops, the sqlite default "synchronous" mode is FULL, not NORMAL

This would've caused inconsistent behavior between databases where
fsync is explicitly set to enabled and to one where it was not set.
This commit is contained in:
Panu Matilainen 2019-11-14 15:54:49 +02:00
parent db1efd0828
commit 61e13a608a
1 changed files with 1 additions and 1 deletions

View File

@ -359,7 +359,7 @@ static int sqlite_Verify(dbiIndex dbi, unsigned int flags)
static void sqlite_SetFSync(rpmdb rdb, int enable)
{
sqlexec(rdb->db_dbenv,
"PRAGMA synchronous = %s", enable ? "NORMAL" : "OFF");
"PRAGMA synchronous = %s", enable ? "FULL" : "OFF");
}
static int sqlite_Ctrl(rpmdb rdb, dbCtrlOp ctrl)