summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-08-07 21:33:00 +1000
committerMichael Adam <obnox@samba.org>2008-08-13 11:54:09 +0200
commit7e9229e17ad68be321dc42bb37e2251b140f7888 (patch)
tree9a8c6b1c7c5c75d8f8625d5520a230154238c0c5 /source3/lib
parent5c306c67aab685792cdd0a3c05301329794831ad (diff)
downloadsamba-7e9229e17ad68be321dc42bb37e2251b140f7888.tar.gz
samba-7e9229e17ad68be321dc42bb37e2251b140f7888.tar.bz2
samba-7e9229e17ad68be321dc42bb37e2251b140f7888.zip
we need to commit, not cancel, on record destruction
(This used to be commit ba64a757f86fb60994e12e81416083ac0fa11c21)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_ctdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index d46b64dba5..16c626632d 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -405,7 +405,10 @@ static int db_ctdb_record_destructor(struct db_record *rec)
{
struct db_ctdb_transaction_handle *h = talloc_get_type_abort(
rec->private_data, struct db_ctdb_transaction_handle);
- h->ctx->db->transaction_cancel(h->ctx->db);
+ int ret = h->ctx->db->transaction_commit(h->ctx->db);
+ if (ret != 0) {
+ DEBUG(0,(__location__ " transaction_commit failed\n"));
+ }
return 0;
}