Disable synchronous writes.
authorjbj <devnull@localhost>
Sat, 19 Mar 2005 15:17:29 +0000 (15:17 +0000)
committerjbj <devnull@localhost>
Sat, 19 Mar 2005 15:17:29 +0000 (15:17 +0000)
CVS patchset: 7825
CVS date: 2005/03/19 15:17:29

rpmdb/sqlite.c

index c8ce9a1..d9023a2 100644 (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);