diff options
Diffstat (limited to 'lib/ldb/common')
-rw-r--r-- | lib/ldb/common/ldb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index 7a997f7824..3dc6d87228 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -408,6 +408,7 @@ int ldb_transaction_prepare_commit(struct ldb_context *ldb) status = module->ops->prepare_commit(module); if (status != LDB_SUCCESS) { + ldb->transaction_active--; /* if a module fails the prepare then we need to call the end transaction for everyone */ FIRST_OP(ldb, del_transaction); |