summaryrefslogtreecommitdiff
path: root/debuginfod/ChangeLog
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-05-08 19:27:48 +0200
committerMark Wielaard <mark@klomp.org>2022-05-15 00:20:59 +0200
commit6b08114b11985ec3a903456f278aa67329491eae (patch)
tree175fbe2553b6788d9d321040225f98362b70c441 /debuginfod/ChangeLog
parenta6b3e9dd4e725e1500872f3726f97954b81d59ad (diff)
downloadelfutils-6b08114b11985ec3a903456f278aa67329491eae.tar.gz
debuginfod: Remove debuginfod_init_cache
debuginfod_init_cache would create all config files if they didn't exist yet. It always made two stat calls. Then debuginfod_clean_cache would call debuginfod_config_cache which did the same checks and created any missing config files. Just make sure the cache_path directory exists and remove debuginfod_init_cache before calling debuginfod_clean_cache. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'debuginfod/ChangeLog')
-rw-r--r--debuginfod/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index 26c1a076..93aaedb6 100644
--- a/debuginfod/ChangeLog
+++ b/debuginfod/ChangeLog
@@ -1,5 +1,11 @@
2022-05-09 Mark Wielaard <mark@klomp.org>
+ * debuginfod-client.c (debuginfod_init_cache): Remove.
+ (debuginfod_query_server): Don't call debuginfod_init_cache, call
+ mkdir then debuginfod_clean_cache.
+
+2022-05-09 Mark Wielaard <mark@klomp.org>
+
* debuginfod-client.c (debuginfod_config_cache): Always open with
O_CREATE first, then use fstat, only write the cache_config_default_s
value if st_size == 0, otherwise read value from file.