libctdb: tweak interface for readrecordlock
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 24 May 2010 04:22:17 +0000 (13:52 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 24 May 2010 04:22:17 +0000 (13:52 +0930)
commit3727165f0d206999d2cfc2800ff8868640868c7c
tree199516a32518256b1fb3c09e07344e8eac83ac94
parentebe4dd724338c156423cfdcc10a75b68c2084cde
libctdb: tweak interface for readrecordlock

Previously we could hang in poll with the callback pending (since we
fake it): explicitly call it immediately.

Note: I experienced corruption using DLIST_ADD_END (ctdb->pnn was blatted
when adding to the message_handler list).  I switched them all to DLIST_ADD,
but maybe I'm using it wrong?
include/ctdb.h
libctdb/ctdb.c
libctdb/libctdb_private.h
libctdb/messages.c
libctdb/tst.c