ctdb-daemon: Fix CID 1272855 Operands don't affect result
authorMartin Schwenke <martin@meltin.net>
Wed, 10 Aug 2016 06:42:13 +0000 (16:42 +1000)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 21:00:24 +0000 (23:00 +0200)
Failures are already logged at alert/error level above, so just log
the summary at notice level.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12157

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/server/ctdb_ltdb_server.c

index 6b391b09071459940dc0077a603d4e33dc8434ac..8feaff11c98a3c4846c622e6cf2c47d7ad80a078 100644 (file)
@@ -630,7 +630,7 @@ int ctdb_recheck_persistent_health(struct ctdb_context *ctdb)
                                   ctdb_db->db_path,
                                   ctdb_db->unhealthy_reason));
        }
-       DEBUG((fail!=0)?DEBUG_ALERT:DEBUG_NOTICE,
+       DEBUG(DEBUG_NOTICE,
              ("ctdb_recheck_persistent_health: OK[%d] FAIL[%d]\n",
               ok, fail));