tdb2: tdb_foreach()
commitb67acb7e2a7cde01321daa6116c635a565accd27
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:50:13 +0000 (14 07:20 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:50:13 +0000 (14 07:20 +0930)
tree0c8216cd0d20519cb68af1acec43144a5022f5e5
parent1664702d2f0755a3caf7ba8dd433e34bb8d340b0
tdb2: tdb_foreach()

Create an iterator over every open tdb (not internal TDBs).  This is
useful for re-establishing the tdb1-style active lock for
CLEAR_IF_FIRST.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 1a0c636bc38213bd0322db47529f78f2dc22ffdd)
lib/tdb2/open.c
lib/tdb2/tdb2.h
lib/tdb2/test/run-tdb_foreach.c [new file with mode: 0644]