tdb: expose transaction lock infrastructure for ctdb
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Jan 2011 00:17:11 +0000 (10:47 +1030)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Tue, 18 Jan 2011 02:26:41 +0000 (13:26 +1100)
commit80f0aa9efee9990f4a2c375907548cbd444c7b38
tree2b7aada0f7c8ae75484682436cbf83cb9bd4a970
parentf6998e3cba970308e7f418821188469cff57cd80
tdb: expose transaction lock infrastructure for ctdb

tdb_traverse_read() grabs the transaction lock.  This can cause ctdbd
(which uses it) to block when it should not; expose mark and normal
variants of this lock, so ctdbd's child (the recovery daemon) can
acquire it and the ctdbd parent can mark it was held.
lib/tdb/common/lock.c
lib/tdb/include/tdb.h