diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-21 14:47:34 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-06-21 14:47:34 +0930 |
commit | cfe0edc0b992acec42a620fdbc09a034d7f91d91 (patch) | |
tree | c1a74581e7f0bbcab49301179f95d2da02204e58 /ctdb/include/ctdb.h | |
parent | b93e65eaf74ff637bc960356a418ab55f4ca9330 (diff) | |
download | samba-cfe0edc0b992acec42a620fdbc09a034d7f91d91.tar.gz samba-cfe0edc0b992acec42a620fdbc09a034d7f91d91.tar.xz samba-cfe0edc0b992acec42a620fdbc09a034d7f91d91.zip |
libctdb: implement synchronous readrecordlock interface.
Because this doesn't use a generic callback, it's not quite as trivial
as the other sync wrappers.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(This used to be ctdb commit 1f20b938d46d4fcd50d2b473c1ab8dc31d178d2d)
Diffstat (limited to 'ctdb/include/ctdb.h')
-rw-r--r-- | ctdb/include/ctdb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h index a9ee63ff25..c5e6f935e4 100644 --- a/ctdb/include/ctdb.h +++ b/ctdb/include/ctdb.h @@ -475,6 +475,7 @@ void ctdb_detachdb(struct ctdb_connection *ctdb, struct ctdb_db *db); /** * ctdb_readrecordlock - read and lock a record (synchronous) + * @ctdb: the ctdb_connection from ctdb_connect. * @ctdb_db: the database handle from ctdb_attachdb/ctdb_attachdb_recv. * @key: the key of the record to lock. * @req: a pointer to the request, if one is needed. @@ -482,7 +483,8 @@ void ctdb_detachdb(struct ctdb_connection *ctdb, struct ctdb_db *db); * Do a ctdb_readrecordlock_send and wait for it to complete. * Returns NULL on failure. */ -struct ctdb_lock *ctdb_readrecordlock(struct ctdb_db *ctdb_db, TDB_DATA key, +struct ctdb_lock *ctdb_readrecordlock(struct ctdb_connection *ctdb, + struct ctdb_db *ctdb_db, TDB_DATA key, TDB_DATA *data); |