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

Function startCib

cib/main.c:556–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

554}
555
556gboolean
557startCib(const char *filename)
558{
559 gboolean active = FALSE;
560 xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status);
561
562 CRM_ASSERT(cib != NULL);
563
564 if (activateCibXml(cib, TRUE, "start") == 0) {
565 int port = 0;
566 const char *port_s = NULL;
567
568 active = TRUE;
569
570 cib_read_config(config_hash, cib);
571
572 port_s = crm_element_value(cib, "remote-tls-port");
573 if (port_s) {
574 port = crm_parse_int(port_s, "0");
575 remote_tls_fd = init_remote_listener(port, TRUE);
576 }
577
578 port_s = crm_element_value(cib, "remote-clear-port");
579 if (port_s) {
580 port = crm_parse_int(port_s, "0");
581 remote_fd = init_remote_listener(port, FALSE);
582 }
583
584 crm_info("CIB Initialization completed successfully");
585 }
586
587 return active;
588}

Callers 1

cib_initFunction · 0.85

Calls 6

readCibXmlFileFunction · 0.85
activateCibXmlFunction · 0.85
cib_read_configFunction · 0.85
crm_element_valueFunction · 0.85
crm_parse_intFunction · 0.85
init_remote_listenerFunction · 0.85

Tested by

no test coverage detected