]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: update mtime of interval_path as early as possible
authorMark Wielaard <mark@klomp.org>
Sun, 8 May 2022 19:16:10 +0000 (21:16 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 14 May 2022 22:26:31 +0000 (00:26 +0200)
commit27414ecffd6cc71c9af7bacc75ce448121ac005f
treec70ead3679ae13b528fe494a8d2ed5689568da9d
parent6b08114b11985ec3a903456f278aa67329491eae
debuginfod: update mtime of interval_path as early as possible

Call utime on interval_path file as soon as the thread is committed to
cleanup the cache files. This will prevent other threads trying to
also commit to cleaning the cache files. Having multiple threads try
to clean the cache simultaniously doesn't improve cleanup speed
because the threads will try to delete the files in the same order.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c