From: Gary Lockyer Date: Thu, 22 Mar 2018 22:23:39 +0000 (+1300) Subject: ldb: Unwind transaction counter if start_transaction fails X-Git-Tag: ldb-1.4.0~694 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0935b25bd29fe03dbfbede0b3d65fefef74c1784;p=thirdparty%2Fsamba.git ldb: Unwind transaction counter if start_transaction fails Signed-off-by: Andrew Bartlett Signed-off-by: Gary Lockyer --- diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index a4d9977d1b4..2249089d087 100644 --- a/lib/ldb/common/ldb.c +++ b/lib/ldb/common/ldb.c @@ -379,6 +379,7 @@ int ldb_transaction_start(struct ldb_context *ldb) "ldb transaction start: %s (%d)", ldb_strerror(status), status); + ldb->transaction_active--; } if ((next_module && next_module->ldb->flags & LDB_FLG_ENABLE_TRACING)) { ldb_debug(next_module->ldb, LDB_DEBUG_TRACE, "start ldb transaction error: %s",