From 7e9229e17ad68be321dc42bb37e2251b140f7888 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Aug 2008 21:33:00 +1000 Subject: we need to commit, not cancel, on record destruction (This used to be commit ba64a757f86fb60994e12e81416083ac0fa11c21) --- source3/lib/dbwrap_ctdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/lib') 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; } -- cgit