tdb2: check lock owner in tdb1 backend.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 06:01:08 +0000 (15:31 +0930)
commitbef6f1b02e95370ecb2cb44be87c82afc9cb74b2
tree2c2d77fb20c4341d0e9be2e991050c4732671abe
parent27647f94668040d91de377849dce87dabd72be69
tdb2: check lock owner in tdb1 backend.

This reports errors if we fork() while holding a lock, or misuse a tdb
which we have dual-opened.
ccan/tdb2/lock.c
ccan/tdb2/private.h
ccan/tdb2/tdb1_lock.c