Disable synchronous writes.

CVS patchset: 7825
CVS date: 2005/03/19 15:17:29
This commit is contained in:
jbj 2005-03-19 15:17:29 +00:00
parent b17779435e
commit 59f63dfdcc
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ fprintf(stderr, "\t%s(%d) type(%d) keytype %s\n", tagName(dbi->dbi_rpmtag), dbi-
}
}
sprintf(cmd, "PRAGMA synchronous = OFF;");
rc = sqlite3_exec(sqldb->db, cmd, NULL, NULL, &scp->pzErrmsg);
if (rc)
rpmMessage(RPMMESS_WARNING, "Unable to initDB %s (%d)\n",
scp->pzErrmsg, rc);