]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: populate _r_seekable on request users/amerey/try-xz4
authorOmar Sandoval <osandov@fb.com>
Fri, 19 Jul 2024 18:24:38 +0000 (11:24 -0700)
committerAaron Merey <amerey@redhat.com>
Tue, 23 Jul 2024 20:20:33 +0000 (16:20 -0400)
commit9bff93b7a2f92855ed825c4fe6e17ffc5d3cb53d
treeee68d27f53ebf6792aa2c676cdc8d803b90ca2eb
parentbea0579da1258b4e4cb6ad7050ea6c7952ac8c27
debuginfod: populate _r_seekable on request

Since the schema change adding _r_seekable was done in a backward
compatible way, seekable archives that were previously scanned will not
be in _r_seekable.  Whenever an archive is going to be extracted to
satisfy a request, check if it is seekable.  If so, populate _r_seekable
while extracting it so that future requests use the optimized path.

The next time that BUILDIDS is bumped, all archives will be checked at
scan time.  At that point, checking again will be unnecessary and this
commit (including the test case modification) can be reverted.

Signed-off-by: Omar Sandoval <osandov@fb.com>
debuginfod/debuginfod.cxx
tests/run-debuginfod-seekable.sh