summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2020-01-20 15:37:33 -0500
committerFrank Ch. Eigler <fche@redhat.com>2020-01-20 15:38:50 -0500
commitc351734f4feff176b3e0ca8fbbc8353053c3ab6d (patch)
tree4dc9fd0764cb8e5faecd9aac91ef0d47551a0c83
parent09d76c1dd5e45c5512db997e52234dd2ddab8c2d (diff)
downloadelfutils-c351734f4feff176b3e0ca8fbbc8353053c3ab6d.tar.gz
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.
-rw-r--r--debuginfod/debuginfod.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/debuginfod/debuginfod.cxx b/debuginfod/debuginfod.cxx
index b0299a13..05372764 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);
}