From d367c6364c81f4380c7d2a50a480eb4f9dddfaf8 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sun, 28 Jan 2018 15:02:06 -0500 Subject: [PATCH] context: improve toxic match logs Reword log message for discovery of new toxic extents vs. lookup of previously known toxic extents. Also add the block data (especially filename) to the discovery message. Signed-off-by: Zygo Blaxell --- src/bees-context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bees-context.cc b/src/bees-context.cc index 0ef4dcd..02ab41c 100644 --- a/src/bees-context.cc +++ b/src/bees-context.cc @@ -430,7 +430,7 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e) // Hash is toxic if (found_addr.is_toxic()) { - BEESLOGWARN("WORKAROUND: abandoned toxic match for hash " << hash << " addr " << found_addr); + BEESLOGWARN("WORKAROUND: abandoned toxic match for hash " << hash << " addr " << found_addr << " matching bbd " << bbd); // Don't push these back in because we'll never delete them. // Extents may become non-toxic so give them a chance to expire. // hash_table->push_front_hash_addr(hash, found_addr); @@ -447,7 +447,7 @@ BeesContext::scan_one_extent(const BeesFileRange &bfr, const Extent &e) BeesResolver resolved(m_ctx, found_addr); // Toxic extents are really toxic if (resolved.is_toxic()) { - BEESLOGWARN("WORKAROUND: abandoned toxic match at found_addr " << found_addr << " matching bbd " << bbd); + BEESLOGWARN("WORKAROUND: discovered toxic match at found_addr " << found_addr << " matching bbd " << bbd); BEESCOUNT(scan_toxic_match); // Make sure we never see this hash again. // It has become toxic since it was inserted into the hash table.