From 84094c7cb90ecf3a52a21f3003a4083b25f47075 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Tue, 14 Dec 2021 00:00:32 -0500 Subject: [PATCH] context: use consistent status for dedupe in log and thread note Once the physical addresses are known, put them where they can be seen in BEESTATUS as well as the log. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bees-context.cc b/src/bees-context.cc index 9ef8846..f805625 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -209,6 +209,8 @@ BeesContext::dedup(const BeesRangePair &brp) BEESLOGINFO("dedup: src " << pretty(brp.first.size()) << " [" << to_hex(brp.first.begin()) << ".." << to_hex(brp.first.end()) << "] {" << first_addr << "} " << name_fd(brp.first.fd()) << "\n" << " dst " << pretty(brp.second.size()) << " [" << to_hex(brp.second.begin()) << ".." << to_hex(brp.second.end()) << "] {" << second_addr << "} " << name_fd(brp.second.fd())); + BEESNOTE("dedup: src " << pretty(brp.first.size()) << " [" << to_hex(brp.first.begin()) << ".." << to_hex(brp.first.end()) << "] {" << first_addr << "} " << name_fd(brp.first.fd()) << "\n" + << " dst " << pretty(brp.second.size()) << " [" << to_hex(brp.second.begin()) << ".." << to_hex(brp.second.end()) << "] {" << second_addr << "} " << name_fd(brp.second.fd())); if (first_addr.get_physical_or_zero() == second_addr.get_physical_or_zero()) { BEESLOGTRACE("equal physical addresses in dedup");