From: Andrew Tridgell Date: Thu, 7 Aug 2008 11:33:00 +0000 (+1000) Subject: we need to commit, not cancel, on record destruction X-Git-Tag: samba-3.3.0pre1~147 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba64a757f86fb60994e12e81416083ac0fa11c21;p=thirdparty%2Fsamba.git we need to commit, not cancel, on record destruction --- diff --git a/source/lib/dbwrap_ctdb.c b/source/lib/dbwrap_ctdb.c index d46b64dba59..16c626632de 100644 --- a/source/lib/dbwrap_ctdb.c +++ b/source/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; }