tdb: Make the freelist walk circular-safe
authorVolker Lendecke <vl@samba.org>
Thu, 4 Oct 2018 15:12:42 +0000 (17:12 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 8 Oct 2018 20:17:11 +0000 (22:17 +0200)
commit7e1ad4c58890fce29f9a03347b74b651b8b20305
tree33a7cfe0a2b5e8387668658e85d8c3f7d6bfbd02
parent75e79ca54866ae41107607ebe4427a5bad2a499b
tdb: Make the freelist walk circular-safe

We can't really do the full check while the freelist is modified on the
fly. As long as we don't merge any freelist entries, we should be good
to apply this check.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/tdb/common/freelist.c