int orte_sstore_central_global_unpack(orte_process_name_t* peer, opal_buffer_t* buffer, orte_sstore_base_handle_t *handle) { int ret, exit_status = ORTE_SUCCESS; OPAL_OUTPUT_VERBOSE((10, mca_sstore_central_component.super.output_handle, "sstore:central:(global): unpack()")); /* * Unpack the handle id */ if(OPAL_EQUAL == orte_util_compare_name_fields(ORTE_NS_CMP_JOBID, ORTE_PROC_MY_NAME, peer)) { /* * Differ to the orted version, so if we have application then they get updated too */ if( ORTE_SUCCESS != (ret = orte_sstore_central_local_unpack(peer, buffer, handle)) ) { ORTE_ERROR_LOG(ret); exit_status = ret; goto cleanup; } } cleanup: return exit_status; }
int orte_sstore_central_unpack(orte_process_name_t* peer, opal_buffer_t* buffer, orte_sstore_base_handle_t *handle) { if( orte_sstore_context & ORTE_SSTORE_GLOBAL_TYPE ) { return orte_sstore_central_global_unpack(peer, buffer, handle); } else if( orte_sstore_context & ORTE_SSTORE_LOCAL_TYPE ) { return orte_sstore_central_local_unpack(peer, buffer, handle); } else if( orte_sstore_context & ORTE_SSTORE_APP_TYPE ) { return orte_sstore_central_app_unpack(peer, buffer, handle); } return ORTE_ERR_NOT_SUPPORTED; }