ldb: make the successful ldb_transaction_start() message clearer
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Apr 2014 21:33:26 +0000 (09:33 +1200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:46:14 +0000 (12:46 +0200)
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)

lib/ldb/common/ldb.c

index 36f1c37437cb06350588ec26ddbe716d626d78b2..c49513cfaa7584174bf3a8a40cef6c8c5b3c1769 100644 (file)
@@ -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;
 }