Skip to content

Commit

Permalink
Fix: crmd: Prevent recurring monitors being cancelled due to notify o…
Browse files Browse the repository at this point in the history
…perations
  • Loading branch information
beekhof committed Aug 1, 2013
1 parent 2be200a commit 5896233
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crmd/lrm.c
Expand Up @@ -1744,7 +1744,9 @@ do_lrm_rsc_op(lrm_state_t * lrm_state, lrmd_rsc_info_t * rsc, const char *operat
CRM_CHECK(op != NULL, return);

/* stop any previous monitor operations before changing the resource state */
if (op->interval == 0 && strcmp(operation, CRMD_ACTION_STATUS) != 0) {
if (op->interval == 0
&& strcmp(operation, CRMD_ACTION_STATUS) != 0
&& strcmp(operation, CRMD_ACTION_NOTIFY) != 0) {
guint removed = 0;
struct stop_recurring_action_s data;

Expand Down

0 comments on commit 5896233

Please sign in to comment.