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

Function cib_ais_dispatch

cib/main.c:379–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377
378#if SUPPORT_COROSYNC
379static gboolean
380cib_ais_dispatch(int kind, const char *from, const char *data)
381{
382 xmlNode *xml = NULL;
383
384 if (kind == crm_class_cluster) {
385 xml = string2xml(data);
386 if (xml == NULL) {
387 goto bail;
388 }
389 crm_xml_add(xml, F_ORIG, from);
390 /* crm_xml_add_int(xml, F_SEQ, wrapper->id); */
391 cib_peer_callback(xml, NULL);
392 }
393
394 free_xml(xml);
395 return TRUE;
396
397 bail:
398 crm_err("Invalid XML: '%.120s'", data);
399 return TRUE;
400
401}
402
403static void
404cib_ais_destroy(gpointer user_data)

Callers

nothing calls this directly

Calls 4

string2xmlFunction · 0.85
crm_xml_addFunction · 0.85
cib_peer_callbackFunction · 0.85
free_xmlFunction · 0.85

Tested by

no test coverage detected