1
0
mirror of https://github.com/Zygo/bees.git synced 2025-05-18 05:45:45 +02:00

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 <bees@furryterror.org>
This commit is contained in:
Zygo Blaxell 2024-11-19 17:39:45 -05:00
parent 606ac01d56
commit 05bf1ebf76
2 changed files with 3 additions and 3 deletions

View 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;
}

View 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;
}