On very large servers, each database-stat counting pass can take tens
of minutes (!), and doing it twice per groom pass does not seriously
improve data quality. Just do it once, after stale data removal &
basic sqlite vacuum.
Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
2021-04-15 Frank Ch. Eigler <fche@redhat.com>
+ * debuginfod.cxx (groom): Only update database stats once.
+
+2021-04-15 Frank Ch. Eigler <fche@redhat.com>
+
* debuginfod.cxx (elf_classify): Recognize symtab-only stripped files
like fedora's libicudata as debuginfo files.
struct timespec ts_start, ts_end;
clock_gettime (CLOCK_MONOTONIC, &ts_start);
- database_stats_report();
-
// scan for files that have disappeared
sqlite_ps files (db, "check old files", "select s.mtime, s.file, f.name from "
BUILDIDS "_file_mtime_scanned s, " BUILDIDS "_files f "