From cc14edade621572cf4457d55d5b989029c5131ee Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 11 Mar 2010 22:35:15 -0500 Subject: sysdb: add synchronous transaction functions --- src/db/sysdb.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/db/sysdb.h') diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 6d8e4770..6091e892 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -217,20 +217,11 @@ struct sysdb_ctx *sysdb_handle_get_ctx(struct sysdb_handle *handle); int compare_ldb_dn_comp_num(const void *m1, const void *m2); -/* function to start and finish a transaction - * sysdb_transaction_send() will queue a request for a transaction - * when it is done it will call the tevent_req callback, which must - * retrieve the transaction handle using sysdb_transaction_recv() - * - * A transaction must be completed either by sending a commit: - * sysdb_transaction_commit_send()/sysdb_transaction_commit_recv() - * or by freeing the transaction handle (this will implicitly cause - * a transaction cancelation). - * - * Transactions are serialized, no other transaction or operation can be - * performed while a transaction is active. Multiple transaction request - * are queued internally and served in order. - */ +/* functions to start and finish transactions */ +int sysdb_transaction_start(struct sysdb_ctx *ctx); +int sysdb_transaction_commit(struct sysdb_ctx *ctx); +int sysdb_transaction_cancel(struct sysdb_ctx *ctx); + struct tevent_req *sysdb_transaction_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, -- cgit