]> git.hungrycats.org Git - bees/commitdiff
counters: fix counter names for scan_eof, scan_no_fd, scanf_deferred_inode
authorZygo Blaxell <bees@furryterror.org>
Tue, 19 Nov 2024 22:39:45 +0000 (17:39 -0500)
committerZygo Blaxell <bees@furryterror.org>
Sun, 1 Dec 2024 04:30:33 +0000 (23:30 -0500)
This code gets moved around from time to time and ends up with the
wrong prefix.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-context.cc
src/bees-roots.cc

index a269f05d9f469643983314b04522908feb487860..47c30021e695a6abf3887be7b08e649261a90353 100644 (file)
@@ -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;
        }
 
index 10a7462b534c1e74835f259dd7239b0930d1a98e..8477570f9033216aab3720c0ed2e3154b9839efa 100644 (file)
@@ -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;
        }