]> git.ozlabs.org Git - ccan/commit
tdb2: remove truncated bit.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 12:38:52 +0000 (23:08 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 12:38:52 +0000 (23:08 +1030)
commit576802602c19ed3cfda98414ffc9b118c2675931
treee5bad4d8ba4f3eb4cb1507885a1362b147aaa177
parentb44978e1499a61c3d91d93dbd7c45b6fc45b1778
tdb2: remove truncated bit.

There was an idea that we would use a bit to indicate that we didn't have
the full hash value; this would allow us to move records down when we
expanded a hash without rehashing them.

There's little evidence that rehashing in this case is particularly
expensive, so remove the bit.  We use that bit simply to indicate that
an offset refers to a subhash instead.
ccan/tdb2/hash.c
ccan/tdb2/private.h