debuginfod: Turn -d ":memory:" into -d "file::memory:?cache=shared"
authorMark Wielaard <mark@klomp.org>
Sat, 28 Aug 2021 18:25:56 +0000 (20:25 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 28 Aug 2021 18:25:56 +0000 (20:25 +0200)
commit61554a292f753032490c349fedf47c4fb461e3ea
treed03aa2e37a8ee29b409124918f12180cec6b4f9d
parent17a9b1303e533c13aac6550844bdd68c669091bf
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>
debuginfod/ChangeLog
debuginfod/debuginfod.cxx
doc/ChangeLog
doc/debuginfod.8
tests/ChangeLog
tests/run-debuginfod-find.sh