mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
ctdb-daemon: Skip monitoring when node is inactive
This is currently handled by explicitly disabling monitoring in various places. However, those places shouldn't need to know about monitoring but it is OK for monitoring to know about global node states. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
committed by
Amitay Isaacs
parent
5a782a24a7
commit
873db694c9
@ -387,6 +387,7 @@ static void ctdb_check_health(struct tevent_context *ev,
|
||||
int ret = 0;
|
||||
|
||||
if (ctdb->recovery_mode != CTDB_RECOVERY_NORMAL ||
|
||||
ctdb->nodes[ctdb->pnn]->flags & NODE_FLAGS_INACTIVE ||
|
||||
ctdb->monitor->monitoring_mode == CTDB_MONITORING_DISABLED) {
|
||||
skip_monitoring = true;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user