- **status**: unassigned --> accepted
- **assigned_to**: Neelakanta Reddy
- **Part**: - --> lib



---

** [tickets:#1816] IMM: saImmOiAugmentCcbInitialize returned ERR_TRY_AGAIN when 
ERR_LIBRARY was expected**

**Status:** accepted
**Milestone:** 4.7.2
**Created:** Mon May 09, 2016 07:27 AM UTC by Chani Srivastava
**Last Updated:** Mon May 09, 2016 07:28 AM UTC
**Owner:** Neelakanta Reddy


This was found as part of validating ticket #1808

Code snippet: imma_oi_api.c:3749

~~~
 if(immsv_om_handle_initialize) {/*This is always the first immsv_om_ call */
                        rc = immsv_om_handle_initialize(&privateOmHandle, 
&version);
                } else {
                        TRACE("ERR_LIBRARY: Error in library linkage. 
libSaImmOm.so is not linked");
                        rc = SA_AIS_ERR_LIBRARY;
                }

                if(rc != SA_AIS_OK) {
                        TRACE("ERR_TRY_AGAIN: failed to obtain internal om 
handle rc:%u", rc);
                        rc = SA_AIS_ERR_TRY_AGAIN;
                        goto lock_fail; /* We are not locked and nothing to 
de-allocate.  */
                }
~~~

When rc is set to SA_AIS_ERR_LIBRARY, there is no goto and hence next if 
condition is executed which sets rc SA_AIS_ERR_TRY_AGAIN



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to