projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b177794
)
Disable synchronous writes.
author
jbj
<devnull@localhost>
Sat, 19 Mar 2005 15:17:29 +0000
(15:17 +0000)
committer
jbj
<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
patch
|
blob
|
history
diff --git
a/rpmdb/sqlite.c
b/rpmdb/sqlite.c
index
c8ce9a1
..
d9023a2
100644
(file)
--- a/
rpmdb/sqlite.c
+++ b/
rpmdb/sqlite.c
@@
-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);