]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: populate _r_seekable on request users/amerey/try-xz5
authorOmar Sandoval <osandov@fb.com>
Tue, 23 Jul 2024 22:35:43 +0000 (15:35 -0700)
committerAaron Merey <amerey@redhat.com>
Wed, 24 Jul 2024 14:14:03 +0000 (10:14 -0400)
commit357a586bd285ff4bdde61fc0db0a9a1ecfa9edfc
treed98932947cec1bc274db62b17418990e957238c8
parent492a9d5561e49e618de44785c7ff822f0f806b2f
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