Blob Blame History Raw
commit 589623389c1df5301d18f13b0aa06adbc88fcae2
Author: Andrew Beekhof <andrew@beekhof.net>
Date:   Thu Aug 1 15:42:00 2013 +1000

    Fix: crmd: Prevent recurring monitors being cancelled due to notify operations

diff --git a/crmd/lrm.c b/crmd/lrm.c
index d6b0dd0..4bce39a 100644
--- a/crmd/lrm.c
+++ b/crmd/lrm.c
@@ -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;