From 05bf1ebf76e83177010a7d0594eb2d1c39920147 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 19 Nov 2024 17:39:45 -0500 Subject: [PATCH] counters: fix counter names for scan_eof, scan_no_fd, scanf_deferred_inode This code gets moved around from time to time and ends up with the wrong prefix. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 4 ++-- src/bees-roots.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index a269f05..47c3002 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -694,14 +694,14 @@ BeesContext::scan_forward(const BeesFileRange &bfr_in) // No FD? Well, that was quick. if (!bfr.fd()) { // BEESLOGINFO("No FD in " << root_path() << " for " << bfr); - BEESCOUNT(scan_no_fd); + BEESCOUNT(scanf_no_fd); return false; } // Sanity check if (bfr.begin() >= bfr.file_size()) { BEESLOGWARN("past EOF: " << bfr); - BEESCOUNT(scan_eof); + BEESCOUNT(scanf_eof); return false; } diff --git a/src/bees-roots.cc b/src/bees-roots.cc index 10a7462..8477570 100644 --- a/src/bees-roots.cc +++ b/src/bees-roots.cc @@ -552,7 +552,7 @@ BeesFileCrawl::crawl_one_extent() auto inode_mutex = m_ctx->get_inode_mutex(m_bedf.objectid()); auto inode_lock = inode_mutex->try_lock(Task::current_task()); if (!inode_lock) { - BEESCOUNT(scanf_deferred_inode); + BEESCOUNT(crawl_deferred_inode); // Returning false here means we won't reschedule ourselves, but inode_mutex will do that return false; }