MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / update_action_flags

Function update_action_flags

pengine/allocate.h:174–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 enum pe_action_flags filter, enum pe_ordering type);
173
174static inline gboolean
175update_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

Callers 15

native_assign_nodeFunction · 0.85
check_action_definitionFunction · 0.85
probe_resourcesFunction · 0.85
rsc_order_thenFunction · 0.85
expand_notification_dataFunction · 0.85
clone_create_actionsFunction · 0.85
master_create_actionsFunction · 0.85
graph_update_actionFunction · 0.85
order_rsc_setsFunction · 0.85
RecurringOpFunction · 0.85
RecurringOp_StoppedFunction · 0.85

Calls 1

is_setFunction · 0.85

Tested by

no test coverage detected