tdb2: set owner for locks
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Mar 2011 11:42:21 +0000 (22:12 +1030)
commit2960e90f2d036935273d163593839d3777be7980
tree1300912c5a3abd94cd89b7ee5d6ccba0b889e690
parent6892edd66e0a1f2f8633c59b8cf8d0fa91e82394
tdb2: set owner for locks

The last step before sharing struct tdb_file is to add a field to
identify which tdb context is holding each lock, so we can fail when
they conflict.
ccan/tdb2/lock.c
ccan/tdb2/open.c
ccan/tdb2/private.h