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

Function cib_process_delete

lib/cib/cib_ops.c:276–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276int
277cib_process_delete(const char *op, int options, const char *section, xmlNode * req, xmlNode * input,
278 xmlNode * existing_cib, xmlNode ** result_cib, xmlNode ** answer)
279{
280 xmlNode *obj_root = NULL;
281
282 crm_trace("Processing \"%s\" event", op);
283
284 if (options & cib_xpath) {
285 return cib_process_xpath(op, options, section, req, input,
286 existing_cib, result_cib, answer);
287 }
288
289 if (input == NULL) {
290 crm_err("Cannot perform modification with no data");
291 return -EINVAL;
292 }
293
294 obj_root = get_object_root(section, *result_cib);
295 if (replace_xml_child(NULL, obj_root, input, TRUE) == FALSE) {
296 crm_trace("No matching object to delete");
297 }
298
299 return pcmk_ok;
300}
301
302int
303cib_process_modify(const char *op, int options, const char *section, xmlNode * req, xmlNode * input,

Callers

nothing calls this directly

Calls 3

cib_process_xpathFunction · 0.85
get_object_rootFunction · 0.85
replace_xml_childFunction · 0.85

Tested by

no test coverage detected