From: Frank Ch. Eigler Date: Mon, 20 Jan 2020 20:37:33 +0000 (-0500) Subject: PR25394 cont'd: debuginfod timing fix for fts-traversal thread X-Git-Tag: elfutils-0.179~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c351734f4feff176b3e0ca8fbbc8353053c3ab6d;p=thirdparty%2Felfutils.git PR25394 cont'd: debuginfod timing fix for fts-traversal thread The new code neglected to set the last_rescan timestamp, leading to overly frequent rescanning. --- diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx index b0299a133..053727642 100644 --- a/debuginfod/debuginfod.cxx +++ b/debuginfod/debuginfod.cxx @@ -2505,6 +2505,7 @@ thread_main_fts_source_paths (void* arg) { set_metric("thread_busy", "role","traverse", 1); scan_source_paths(); + last_rescan = time(NULL); // NB: now was before scanning inc_metric("thread_work_total", "role","traverse"); set_metric("thread_busy", "role","traverse", 0); }