mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ldb: Unwind transaction counter if start_transaction fails
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
parent
428c0a81ae
commit
0935b25bd2
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user