Skip to content

Commit

Permalink
Low: PE: Ensure we test against the current action flags
Browse files Browse the repository at this point in the history
  • Loading branch information
beekhof committed Mar 7, 2012
1 parent 33565a1 commit e898842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pengine/native.c
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ native_update_actions(action_t * first, action_t * then, node_t * node, enum pe_
} else if ((then_rsc_role == RSC_ROLE_STARTED) && safe_str_eq(then->task, RSC_START)) {
/* ignore... if 'then' is supposed to be started after 'first', but
* then is already started, there is nothing to be done when non-symmetrical. */
} else if (!(first_flags & pe_action_runnable)) {
} else if (!(first->flags & pe_action_runnable)) {
/* prevent 'then' action from happening if 'first' is not runnable and
* 'then' has not yet occurred. */
clear_bit_inplace(then->flags, pe_action_runnable);
Expand Down

0 comments on commit e898842

Please sign in to comment.