Skip to content

Commit

Permalink
Merge pull request #1254 from HideoYamauchi/move_alert_func
Browse files Browse the repository at this point in the history
Low: crmd: Move Alert function to common. (again)
  • Loading branch information
kgaillot committed Mar 23, 2017
2 parents 2c5bb2f + 88740d7 commit 0401f26
Show file tree
Hide file tree
Showing 12 changed files with 722 additions and 673 deletions.
2 changes: 1 addition & 1 deletion crmd/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ crmd_LDADD = $(top_builddir)/lib/fencing/libstonithd.la \
$(top_builddir)/lib/lrmd/liblrmd.la \
$(CLUSTERLIBS)

crmd_SOURCES = main.c crmd.c corosync.c notify.c \
crmd_SOURCES = main.c crmd.c corosync.c crmd_alerts.c \
fsa.c control.c messages.c membership.c callbacks.c attrd.c \
election.c join_client.c join_dc.c subsystems.c throttle.c \
cib.c pengine.c tengine.c lrm.c lrm_state.c remote_lrmd_ra.c \
Expand Down
2 changes: 1 addition & 1 deletion crmd/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ peer_update_callback(enum crm_status_type type, crm_node_t * node, const void *d
}
}

crmd_notify_node_event(node);
crmd_alert_node_event(node);
break;

case crm_status_processes:
Expand Down
4 changes: 2 additions & 2 deletions crmd/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void
#ifdef RHEL7_COMPAT
script = crmd_pref(config_hash, "notification-agent");
value = crmd_pref(config_hash, "notification-recipient");
crmd_enable_notifications(script, value);
crmd_enable_alerts(script, value);
#endif

value = crmd_pref(config_hash, XML_CONFIG_ATTR_DC_DEADTIME);
Expand Down Expand Up @@ -1095,7 +1095,7 @@ config_query_callback(xmlNode * msg, int call_id, int rc, xmlNode * output, void
}

alerts = first_named_child(output, XML_CIB_TAG_ALERTS);
parse_notifications(alerts);
parse_alerts(alerts);

set_bit(fsa_input_register, R_READ_CONFIG);
crm_trace("Triggering FSA: %s", __FUNCTION__);
Expand Down
Loading

0 comments on commit 0401f26

Please sign in to comment.