From f8320b3559956b06d3b54e7707986d03aa5084f3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Dec 2009 17:12:28 +1100 Subject: s4-ldb: fixed a transaction error on prepare_commit when a prepare commit fails, we need to give a cancel to all modules, not a commit! Pair-Programmed-With: Andrew Bartlett --- source4/lib/ldb/common/ldb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index a3472a60e5..91429c2415 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -382,8 +382,8 @@ int ldb_transaction_prepare_commit(struct ldb_context *ldb) if (status != LDB_SUCCESS) { /* if a module fails the prepare then we need to call the end transaction for everyone */ - FIRST_OP(ldb, end_transaction); - module->ops->end_transaction(module); + FIRST_OP(ldb, del_transaction); + module->ops->del_transaction(module); if (ldb->err_string == NULL) { /* no error string was setup by the backend */ ldb_asprintf_errstring(ldb, -- cgit