- **Type**: defect --> enhancement
---
** [tickets:#266] mds : Error codes are not forwarded in ncsmds_api**
**Status:** assigned
**Milestone:** future
**Created:** Thu May 16, 2013 08:50 AM UTC by A V Mahesh (AVM)
**Last Updated:** Tue May 21, 2013 10:46 AM UTC
**Owner:** A V Mahesh (AVM)
http://devel.opensaf.org/ticket/2267
Return value from enc_full or flat for example is not forwarded all the way up
to caller of the MDS API.
"rc = ncsmds_api(&mds_info)"
For example invalid param from encoding could be useful to return back to the
user. Now only NCSCC_RC_FAILURE will be returned back for all errors.
This is pattern is on other places in MDS API also. What is the reason for not
forward return codes?
from mds_c_sndrcv.c status below is not forwarded:
m_MDS_LOG_DBG("MDS_SND_RCV : calling cb ptr enc or enc flatin
mcm_msg_encode_full_or_flat_and_send\n");
status = svc_cb->cback_ptr(&cbinfo);
if (status != NCSCC_RC_SUCCESS) {
m_MDS_LOG_ERR
("MDS_SND_RCV: Encode callback of Dest =%d, Adest=%llx, svc-id=%d failed while
sending to svc=%d)",
dest_vdest_id, adest, svc_cb->svc_id, to_svc_id);
m_MDS_LOG_DBG("MDS_SND_RCV : Leaving mcm_msg_encode_full_or_flat_and_send\n");
if (msg_send.msg.encoding == MDS_ENC_TYPE_FLAT) {
m_MMGR_FREE_BUFR_LIST(msg_send.msg.data.flat_uba.start);
} else if (msg_send.msg.encoding == MDS_ENC_TYPE_FULL) {
m_MMGR_FREE_BUFR_LIST(msg_send.msg.data.fullenc_uba.start);
}
return NCSCC_RC_FAILURE;
}
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets