summaryrefslogtreecommitdiff
path: root/doc/debuginfod.8
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-08-28 20:25:56 +0200
committerMark Wielaard <mark@klomp.org>2021-08-28 20:25:56 +0200
commit61554a292f753032490c349fedf47c4fb461e3ea (patch)
treed03aa2e37a8ee29b409124918f12180cec6b4f9d /doc/debuginfod.8
parent17a9b1303e533c13aac6550844bdd68c669091bf (diff)
downloadelfutils-61554a292f753032490c349fedf47c4fb461e3ea.tar.gz
debuginfod: Turn -d ":memory:" into -d "file::memory:?cache=shared"
debuginfod opens the database twice, once in read/wrote and once in read-only mode. This means the magic ":memory:" in-memory database cannot be used as is because the two connections don't really share the underlying database. Fix this by turning ":memory:" into ":file::memory:?cache=shared" which makes the in-memory database shared. See https://sqlite.org/inmemorydb.html Document this in debuginfod.8 and make some tests use -d :memory: Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'doc/debuginfod.8')
-rw-r--r--doc/debuginfod.86
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/debuginfod.8 b/doc/debuginfod.8
index 5b0d793c..f9a418d1 100644
--- a/doc/debuginfod.8
+++ b/doc/debuginfod.8
@@ -117,8 +117,10 @@ file is disposable in the sense that a later rescan will repopulate
data. It will contain absolute file path names, so it may not be
portable across machines. It may be frequently read/written, so it
should be on a fast filesystem. It should not be shared across
-machines or users, to maximize sqlite locking performance. The
-default database file is \%$HOME/.debuginfod.sqlite.
+machines or users, to maximize sqlite locking performance. For quick
+testing the magic string ":memory:" can be used to use an one-time
+memory-only database. The default database file is
+\%$HOME/.debuginfod.sqlite.
.TP
.B "\-D SQL" "\-\-ddl=SQL"