git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ldb: Unwind transaction counter if start_transaction fails
[metze/samba/wip.git]
/
lib
/
ldb
/
common
/
ldb.c
diff --git
a/lib/ldb/common/ldb.c
b/lib/ldb/common/ldb.c
index a4d9977d1b4f5fb6646bd412f7d44295ba60ca2f..2249089d0877b30b7b525264e838c1f3ef2eda14 100644
(file)
--- 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",