| 172 | enum pe_action_flags filter, enum pe_ordering type); |
| 173 | |
| 174 | static inline gboolean |
| 175 | update_action_flags(action_t * action, enum pe_action_flags flags) |
| 176 | { |
| 177 | gboolean changed = FALSE; |
| 178 | gboolean clear = is_set(flags, pe_action_clear); |
| 179 | enum pe_action_flags last = action->flags; |
| 180 | |
| 181 | if (clear) { |
| 182 | pe_clear_action_bit(action, flags); |
| 183 | } else { |
| 184 | pe_set_action_bit(action, flags); |
| 185 | } |
| 186 | |
| 187 | if (last != action->flags) { |
| 188 | changed = TRUE; |
| 189 | clear_bit(flags, pe_action_clear); |
| 190 | crm_trace("%s on %s: %sset flags 0x%.6x (was 0x%.6x, now 0x%.6x)", |
| 191 | action->uuid, action->node ? action->node->details->uname : "[none]", |
| 192 | clear ? "un-" : "", flags, last, action->flags); |
| 193 | } |
| 194 | |
| 195 | return changed; |
| 196 | } |
| 197 | |
| 198 | #endif |
no test coverage detected