MCPcopy Create free account
hub / github.com/corosync/corosync / cmap_iter_finalize

Function cmap_iter_finalize

lib/cmap.c:938–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

936}
937
938cs_error_t cmap_iter_finalize(
939 cmap_handle_t handle,
940 cmap_iter_handle_t iter_handle)
941{
942 cs_error_t error;
943 struct iovec iov;
944 struct cmap_inst *cmap_inst;
945 struct req_lib_cmap_iter_finalize req_lib_cmap_iter_finalize;
946 struct res_lib_cmap_iter_finalize res_lib_cmap_iter_finalize;
947
948 error = hdb_error_to_cs(hdb_handle_get (&cmap_handle_t_db, handle, (void *)&cmap_inst));
949 if (error != CS_OK) {
950 return (error);
951 }
952
953 memset(&req_lib_cmap_iter_finalize, 0, sizeof(req_lib_cmap_iter_finalize));
954 req_lib_cmap_iter_finalize.header.size = sizeof(req_lib_cmap_iter_finalize);
955 req_lib_cmap_iter_finalize.header.id = MESSAGE_REQ_CMAP_ITER_FINALIZE;
956 req_lib_cmap_iter_finalize.iter_handle = iter_handle;
957
958 iov.iov_base = (char *)&req_lib_cmap_iter_finalize;
959 iov.iov_len = sizeof(req_lib_cmap_iter_finalize);
960
961 error = qb_to_cs_error(qb_ipcc_sendv_recv(
962 cmap_inst->c,
963 &iov,
964 1,
965 &res_lib_cmap_iter_finalize,
966 sizeof (struct res_lib_cmap_iter_finalize), CS_IPC_TIMEOUT_MS));
967
968 if (error == CS_OK) {
969 error = res_lib_cmap_iter_finalize.header.error;
970 }
971
972 (void)hdb_handle_put (&cmap_handle_t_db, handle);
973
974 return (error);
975}
976
977cs_error_t cmap_track_add(
978 cmap_handle_t handle,

Callers 8

node_name_by_nodelistFunction · 0.85
nodestatusget_doFunction · 0.85
track_link_updown_eventsFunction · 0.85
print_iterFunction · 0.85
delete_with_prefixFunction · 0.85
nextMethod · 0.85

Calls 4

hdb_error_to_csFunction · 0.85
hdb_handle_getFunction · 0.85
qb_to_cs_errorFunction · 0.85
hdb_handle_putFunction · 0.85

Tested by

no test coverage detected