From 0935b25bd29fe03dbfbede0b3d65fefef74c1784 Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Fri, 23 Mar 2018 11:23:39 +1300 Subject: [PATCH] ldb: Unwind transaction counter if start_transaction fails Signed-off-by: Andrew Bartlett Signed-off-by: Gary Lockyer --- lib/ldb/common/ldb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c index a4d9977d1b4f..2249089d0877 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", -- 2.34.1