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:
parent
db1efd0828
commit
61e13a608a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue