diff options
author | Andrew Tridgell <tridge@samba.org> | 2009-05-26 09:26:47 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2009-05-26 09:26:47 +1000 |
commit | ecdad56b6eedad4a4d8031477827c522cdf6d76e (patch) | |
tree | ee924581609a5ddfca9992630502a53f7540db87 /source3/lib/dbwrap_ctdb.c | |
parent | e15027155d3d880abde83124e252b3dd10a9aae4 (diff) | |
parent | 714acfac013a46c3677c3eb72ad57db6d97c7d61 (diff) | |
download | samba-ecdad56b6eedad4a4d8031477827c522cdf6d76e.tar.gz samba-ecdad56b6eedad4a4d8031477827c522cdf6d76e.tar.bz2 samba-ecdad56b6eedad4a4d8031477827c522cdf6d76e.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/lib/dbwrap_ctdb.c')
-rw-r--r-- | source3/lib/dbwrap_ctdb.c | 15 |
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; |