summaryrefslogtreecommitdiff
path: root/dbgserver
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2019-07-30 11:00:21 -0400
committerFrank Ch. Eigler <fche@redhat.com>2019-07-30 11:00:42 -0400
commit55bb16b34f2d72fc443e9b3864b299cf12b7a7b7 (patch)
tree447de705c49bd2f0a1bc5ab6beffa8738d2d256a /dbgserver
parenteb619c75bb28a7c14f89902fefb5765acaca2266 (diff)
downloadelfutils-55bb16b34f2d72fc443e9b3864b299cf12b7a7b7.tar.gz
dbgserver: prefer wal logging for sqlite db
Diffstat (limited to 'dbgserver')
-rw-r--r--dbgserver/dbgserver.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbgserver/dbgserver.cxx b/dbgserver/dbgserver.cxx
index 2850c51e..ff2b0b9e 100644
--- a/dbgserver/dbgserver.cxx
+++ b/dbgserver/dbgserver.cxx
@@ -97,6 +97,7 @@ using namespace std;
static const char DBGSERVER_SQLITE_DDL[] =
"pragma foreign_keys = on;\n"
"pragma synchronous = 0;\n" // disable fsync()s - this cache is disposable across a machine crash
+ "pragma journal_mode = wal;\n" // https://sqlite.org/wal.html
/* Normalized tables to represent general buildid-to-file/subfile mapping. */
"create table if not exists " BUILDIDS "_files (\n"