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

Function cib_ccm_dispatch

cib/callbacks.c:1219–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219int
1220cib_ccm_dispatch(gpointer user_data)
1221{
1222 int rc = 0;
1223 oc_ev_t *ccm_token = (oc_ev_t *) user_data;
1224
1225 crm_trace("received callback");
1226
1227 if (ccm_api_handle_event == NULL) {
1228 ccm_api_handle_event =
1229 find_library_function(&ccm_library, CCM_LIBRARY, "oc_ev_handle_event", 1);
1230 }
1231
1232 rc = (*ccm_api_handle_event) (ccm_token);
1233 if (0 == rc) {
1234 return 0;
1235 }
1236
1237 crm_err("CCM connection appears to have failed: rc=%d.", rc);
1238
1239 /* eventually it might be nice to recover and reconnect... but until then... */
1240 crm_err("Exiting to recover from CCM connection failure");
1241 crm_exit(2);
1242
1243 return -1;
1244}
1245
1246int current_instance = 0;
1247void

Callers

nothing calls this directly

Calls 2

find_library_functionFunction · 0.85
crm_exitFunction · 0.85

Tested by

no test coverage detected