summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-05-25 21:59:40 +0200
committerMichael Adam <obnox@samba.org>2009-05-25 22:16:46 +0200
commitf5a5c6a5dcf6be2486c53138e24f8d76b64f882e (patch)
tree4568202d84ac47ce460466b074342ae583b83bd9 /source3
parent326237c4dd3bb03865a3510296aa925e22ea3302 (diff)
downloadsamba-f5a5c6a5dcf6be2486c53138e24f8d76b64f882e.tar.gz
samba-f5a5c6a5dcf6be2486c53138e24f8d76b64f882e.tar.bz2
samba-f5a5c6a5dcf6be2486c53138e24f8d76b64f882e.zip
s3:dbwrap_ctdb: fix some function header comments
Michael
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/dbwrap_ctdb.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 4a5bf6d81a..e38f76fcf6 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -212,14 +212,20 @@ static struct ctdb_rec_data *db_ctdb_marshall_loop_next(struct ctdb_marshall_buf
-/* start a transaction on a database */
+/**
+ * CTDB transaction destructor
+ */
static int db_ctdb_transaction_destructor(struct db_ctdb_transaction_handle *h)
{
tdb_transaction_cancel(h->ctx->wtdb->tdb);
return 0;
}
-/* start a transaction on a database */
+/**
+ * start a transaction on a ctdb database:
+ * - lock the transaction lock key
+ * - start the tdb transaction
+ */
static int db_ctdb_transaction_fetch_start(struct db_ctdb_transaction_handle *h)
{
struct db_record *rh;
@@ -268,7 +274,10 @@ again:
}
-/* start a transaction on a database */
+/**
+ * CTDB dbwrap API: transaction_start function
+ * starts a transaction on a persistent database
+ */
static int db_ctdb_transaction_start(struct db_context *db)
{
struct db_ctdb_transaction_handle *h;