From: Amitay Isaacs Date: Thu, 22 Jun 2017 04:52:32 +0000 (+1000) Subject: ctdb-recovery: Simplify logging of recovery mode setting X-Git-Tag: tdb-1.3.14~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d74dadd7f26a9e8c48ba92468d7d0c4a7aa5a8e5;p=thirdparty%2Fsamba.git ctdb-recovery: Simplify logging of recovery mode setting BUG: https://bugzilla.samba.org/show_bug.cgi?id=12857 Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c index ada31af8822..e35ba737eba 100644 --- a/ctdb/server/ctdb_recover.c +++ b/ctdb/server/ctdb_recover.c @@ -862,6 +862,9 @@ int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb, return 0; } + D_NOTICE("Recovery mode set to %s\n", + recmode == CTDB_RECOVERY_NORMAL ? "NORMAL" : "ACTIVE"); + /* if we enter recovery but stay in recovery for too long we will eventually drop all our ip addresses */ @@ -874,11 +877,6 @@ int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb, } } - if (recmode != ctdb->recovery_mode) { - DEBUG(DEBUG_NOTICE,(__location__ " Recovery mode set to %s\n", - recmode==CTDB_RECOVERY_NORMAL?"NORMAL":"ACTIVE")); - } - if (recmode != CTDB_RECOVERY_NORMAL || ctdb->recovery_mode != CTDB_RECOVERY_ACTIVE) { ctdb->recovery_mode = recmode;