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:
parent
5c306c67aa
commit
7e9229e17a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user