]> git.ozlabs.org Git - ccan/commit
tdb2: open hook for implementing TDB_CLEAR_IF_FIRST
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 04:21:54 +0000 (13:51 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 04:21:54 +0000 (13:51 +0930)
commit0468e6992770e5082f2fb11cd93c2d8209e3f351
treee028b1072091077e4f02df87bada7c04e4458988
parent4ee7bd08f427b3e93d6225dd30e745ee62a4e85f
tdb2: open hook for implementing TDB_CLEAR_IF_FIRST

This allows the caller to implement clear-if-first semantics as per
TDB1.  The flag was removed for good reasons: performance and
unreliability, but SAMBA3 still uses it widely, so this allows them to
reimplement it themselves.

(There is no way to do it without help like this from tdb2, since it has
 to be done under the open lock).
ccan/tdb2/open.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/external-agent.c
ccan/tdb2/test/external-agent.h
ccan/tdb2/test/failtest_helper.h
ccan/tdb2/test/run-83-openhook.c [new file with mode: 0644]