libctdb: change callback for ctdb_readrecordlock.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 04:03:08 +0000 (13:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 4 Jun 2010 04:03:08 +0000 (13:33 +0930)
commit03b5546ae45a60ab41eb4f7159a45bfdbf959888
tree41c7e7927b0921b4ff26010e7fbfa1c50669c81e
parent8626b6d7d4e5c747b6bac9d5e5b2cd302b6e144c
libctdb: change callback for ctdb_readrecordlock.

After discussion with Ronnie, we decided to revisit this interface.  We use
the name ctdb_readrecordlock_async, as it is *not* always a send, and we
use a specific callback to avoid the "fake request" creation on the fast
path.

The request itself is never exposed: this means it can't be cancelled,
but we can revisit that later if need be.

This makes both use and implementation simpler.

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