]> git.ozlabs.org Git - ccan-lca-2011.git/commitdiff
tdb2: compare the extra 11 hash bits in the header.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:10:05 +0000 (23:40 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:10:05 +0000 (23:40 +1030)
We already have 10 hash bits encoded in the offset itself; we only get
here incorrectly about 1 time in 1000, so it's a pretty minor
optimization at best.

Nonetheless, we have the information, so let's check it before
accessing the key.  This reduces the probability of a false keycmp by
another factor of 2000.


No differences found