From c21518d8ff7a45d74760ed46538ae99be354c903 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sat, 10 Feb 2018 12:07:54 -0500 Subject: [PATCH] stats: rename "chase_wrong_data" to "chase_no_data" An empty BeesBlockData from the chasing algorithm used to mean that data was found at the expected location but it does not match; however, there are now other reasons for this and they occur much more often. The name is misleading. Change the name to report more correctly what happens: no data, without any guess about the reason. Signed-off-by: Zygo Blaxell --- src/bees-resolve.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bees-resolve.cc b/src/bees-resolve.cc index a8be882..1a9c548 100644 --- a/src/bees-resolve.cc +++ b/src/bees-resolve.cc @@ -230,7 +230,7 @@ BeesResolver::chase_extent_ref(const BtrfsInodeOffsetRoot &bior, BeesBlockData & auto new_bbd = adjust_offset(haystack_bbd, needle_bbd); if (new_bbd.empty()) { // matching offset search failed - BEESCOUNT(chase_wrong_data); + BEESCOUNT(chase_no_data); return BeesFileRange(); } if (new_bbd.begin() == haystack_bbd.begin()) {