]> git.ozlabs.org Git - ccan/commit
tdb2: use magic freetable value rather than different magic for coalescing
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:11:26 +0000 (23:41 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 1 Dec 2010 13:11:26 +0000 (23:41 +1030)
commit539f1af037858b905c50c560f2a608555d8457ff
tree8172329b4b11aeb3d4365d74950624888f33f779
parent115648946c7a78e87fb45eac6c1759a347d4c7f8
tdb2: use magic freetable value rather than different magic for coalescing

We have to unlock during coalescing, so we mark records specially to indicate
to tdb_check that they're not on any list, and to prevent other coalescers
from grabbing them.

Use a special free list number, rather than a new magic.
ccan/tdb2/check.c
ccan/tdb2/free.c
ccan/tdb2/private.h