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

Function cib_op_can_run

cib/common.c:319–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319int
320cib_op_can_run(int call_type, int call_options, gboolean privileged, gboolean global_update)
321{
322 if (privileged == FALSE && cib_server_ops[call_type].needs_privileges) {
323 /* abort */
324 return -EACCES;
325 }
326#if 0
327 if (rc == pcmk_ok
328 && stand_alone == FALSE
329 && global_update == FALSE
330 && (call_options & cib_quorum_override) == 0 && cib_server_ops[call_type].needs_quorum) {
331 return -pcmk_err_no_quorum;
332 }
333#endif
334 return pcmk_ok;
335}
336
337int
338cib_op_prepare(int call_type, xmlNode * request, xmlNode ** input, const char **section)

Callers 1

cib_process_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected