summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-16 17:12:28 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-16 20:56:23 +1100
commitf8320b3559956b06d3b54e7707986d03aa5084f3 (patch)
tree53ffcfe153685f7aa2ee4b9a6d8f932f977f73f8 /source4/lib
parente14c72877fa87e0e6ba0f637dd3367160f8d52b1 (diff)
downloadsamba-f8320b3559956b06d3b54e7707986d03aa5084f3.tar.gz
samba-f8320b3559956b06d3b54e7707986d03aa5084f3.tar.bz2
samba-f8320b3559956b06d3b54e7707986d03aa5084f3.zip
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 <abartlet@samba.org>
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/common/ldb.c4
1 files 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,