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

Function do_init

tools/cibadmin.c:564–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564int
565do_init(void)
566{
567 int rc = pcmk_ok;
568
569 the_cib = cib_new();
570 rc = the_cib->cmds->signon(the_cib, crm_system_name, cib_command);
571 if (rc != pcmk_ok) {
572 crm_err("Signon to CIB failed: %s", pcmk_strerror(rc));
573 fprintf(stderr, "Signon to CIB failed: %s\n", pcmk_strerror(rc));
574 }
575
576 return rc;
577}
578
579void
580cib_connection_destroy(gpointer user_data)

Callers 1

mainFunction · 0.70

Calls 2

cib_newFunction · 0.85
pcmk_strerrorFunction · 0.85

Tested by

no test coverage detected