libctdb: more bool conversion, and accompany lock by ctdb_db in API
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Jun 2010 07:41:40 +0000 (17:11 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Jun 2010 07:41:40 +0000 (17:11 +0930)
commit3f939956ddd693cba6ea5c655288f4f5ca95f768
treee5f00cb33ba6649534dacd60bc0b9e2a726ca736
parenta6fed3f577c7ec51df38ed15ecb9db6ea2ae7c8f
libctdb: more bool conversion, and accompany lock by ctdb_db in API

I missed some int->bool conversions previously, particularly the
return of ctdb_writerecord().

By always handing functions ctdb_connection or ctdb_db, we keep it
consistent with the rest of the API and can do extra lock consistency
checks.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/ctdb.h
libctdb/ctdb.c
libctdb/sync.c
libctdb/tst.c