]> git.hungrycats.org Git - bees/commit
hash: remove dead verify_cell_range and debug scaffolding
authorZygo Blaxell <bees@furryterror.org>
Wed, 17 Jun 2026 01:51:02 +0000 (21:51 -0400)
committerZygo Blaxell <bees@furryterror.org>
Tue, 6 Oct 2026 05:51:40 +0000 (01:51 -0400)
commitd149f3166fd89f2e53149355337e42078493a121
tree8e7388046edec8ff56cd9567c0cca33e8c71a71a
parent1d9c45f03bdeaa4bfcb1f249c73c25f89d831326
hash: remove dead verify_cell_range and debug scaffolding

verify_cell_range and dump_bucket_locked guarded against hash table
corruption from bees bugs fixed long ago.  The periodic survey was the last
live caller of verify_cell_range; it dropped that call when it switched to
summing per-extent occupancy fragments, leaving the function referenced only
from #if 0 blocks.

Delete verify_cell_range, dump_bucket_locked, and the VERIFY_CLEARS_BUGS
flag, along with the three disabled call sites in erase_hash_addr,
push_front_hash_addr and push_random_hash_addr.  The push_random case_cond
variable existed solely to label cases in that disabled diagnostic, so it
goes too; the goto targets that drove the control flow remain.

Assisted-by: Claude-Code:claude-opus-4-8
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
src/bees-hash.cc