summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-04-17 09:33:26 +1200
committerKarolin Seeger <kseeger@samba.org>2014-07-15 12:46:14 +0200
commitdd2a1ea00e82c8c894eb8fa8339760affb3b09f8 (patch)
tree4591f87e16ca38b8c9494d6181f16fd12edd2ffb /lib
parent4b5ec41f94a7f11421d58c893cf87fab9d80be63 (diff)
downloadsamba-dd2a1ea00e82c8c894eb8fa8339760affb3b09f8.tar.gz
ldb: make the successful ldb_transaction_start() message clearer
Change-Id: I00d0705484c3b53f55c4a8ec2953e92329b7408e Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat May 3 10:20:52 CEST 2014 on sn-devel-104 (cherry picked from commit d7c22d56d3f8be9b8293dd481fb450e3cf2343d3)
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/common/ldb.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ldb/common/ldb.c b/lib/ldb/common/ldb.c
index 36f1c37437..c49513cfaa 100644
--- a/lib/ldb/common/ldb.c
+++ b/lib/ldb/common/ldb.c
@@ -371,10 +371,14 @@ int ldb_transaction_start(struct ldb_context *ldb)
ldb_strerror(status),
status);
}
- }
- if ((module && module->ldb->flags & LDB_FLG_ENABLE_TRACING)) {
- ldb_debug(module->ldb, LDB_DEBUG_TRACE, "start ldb transaction error: %s",
- ldb_errstring(module->ldb));
+ if ((module && module->ldb->flags & LDB_FLG_ENABLE_TRACING)) {
+ ldb_debug(module->ldb, LDB_DEBUG_TRACE, "start ldb transaction error: %s",
+ ldb_errstring(module->ldb));
+ }
+ } else {
+ if ((module && module->ldb->flags & LDB_FLG_ENABLE_TRACING)) {
+ ldb_debug(module->ldb, LDB_DEBUG_TRACE, "start ldb transaction success");
+ }
}
return status;
}