aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_db.c
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2010-12-16 13:06:16 -0600
committerPeter Seebach <peter.seebach@windriver.com>2010-12-16 16:35:55 -0600
commit8f548e11610bc246052282e9e985101fd3f10f2a (patch)
tree2a7acee09a3f069f1780a5605a702fc4f828f6cb /pseudo_db.c
parentd23757609b70e35b87271ee5368b2cf34e60b3b3 (diff)
downloadpseudo-8f548e11610bc246052282e9e985101fd3f10f2a.tar.gz
pseudo-8f548e11610bc246052282e9e985101fd3f10f2a.tar.bz2
pseudo-8f548e11610bc246052282e9e985101fd3f10f2a.zip
Change the file journal from PERSIST to OFF
Changing the file journal to OFF, this makes things a bit more susceptible to failure in cases where pseudo crashes or the system crashes.. however, this is believed to be unlikely. Timing: Before: real 6m42.093s user 0m34.321s sys 2m46.086s (with journal set to MEMORY) real 6m33.037s user 0m33.133s sys 2m48.668s After (journal set to OFF) real 6m17.313s user 0m32.757s sys 2m47.654s Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Diffstat (limited to 'pseudo_db.c')
-rw-r--r--pseudo_db.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudo_db.c b/pseudo_db.c
index 35487df..86e42e0 100644
--- a/pseudo_db.c
+++ b/pseudo_db.c
@@ -435,7 +435,7 @@ get_db(sqlite3 **db) {
if (rc) {
dberr(*db, "file_db legacy_file_format");
}
- rc = sqlite3_exec(*db, "PRAGMA journal_mode = PERSIST;", NULL, NULL, &errmsg);
+ rc = sqlite3_exec(*db, "PRAGMA journal_mode = OFF;", NULL, NULL, &errmsg);
if (rc) {
dberr(*db, "file_db journal_mode");
}