1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00

we need to commit, not cancel, on record destruction

(This used to be commit ba64a757f8)
This commit is contained in:
Andrew Tridgell 2008-08-07 21:33:00 +10:00 committed by Michael Adam
parent 5c306c67aa
commit 7e9229e17a

View File

@ -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;
}