diff options
author | Mark Wielaard <mark@klomp.org> | 2021-08-28 20:25:56 +0200 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2021-08-28 20:25:56 +0200 |
commit | 61554a292f753032490c349fedf47c4fb461e3ea (patch) | |
tree | d03aa2e37a8ee29b409124918f12180cec6b4f9d /doc/debuginfod.8 | |
parent | 17a9b1303e533c13aac6550844bdd68c669091bf (diff) | |
download | elfutils-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.8 | 6 |
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" |