tdb2: save openhook, allow tdb_get_attribute() on it.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:36:25 +0000 (15:06 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 05:36:25 +0000 (15:06 +0930)
commit937d0babe99dcd315040a9e48430140e63e4a7df
treedb8b917fe35400be48633ae9b52a592c2789f4f7
parentb87e14495d5b07e1b247218a72329f10ecb3da7f
tdb2: save openhook, allow tdb_get_attribute() on it.

This makes it easy to call it again after a fork(), such as for
re-establishing the CLEAR_IF_FIRST files locks.
ccan/tdb2/open.c
ccan/tdb2/private.h
ccan/tdb2/tdb2.h
ccan/tdb2/test/failtest_helper.h