Hi Surbhi,

The patch adds IPC_SEND(), just wonder how clm processes this message before? As there 's no IPC_SEND at the moment.

Thanks
Minh

On 17/3/21 10:29 am, ztrisur wrote:
Multiple "CLMSV_CLMS_TO_CLMA_IS_MEMBER_MSG" were not being dispatched.
Dispatch later calls detroy. Fixed that.
---
  src/clm/agent/clma_mds.cc | 17 ++++++++++++-----
  1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/clm/agent/clma_mds.cc b/src/clm/agent/clma_mds.cc
index 3e7cb7db2..6faf71c37 100644
--- a/src/clm/agent/clma_mds.cc
+++ b/src/clm/agent/clma_mds.cc
@@ -871,14 +871,21 @@ uint32_t clma_clms_msg_proc(clma_cb_t *cb, CLMSV_MSG 
*clmsv_msg,
            (int)clmsv_msg->info.is_member_info.client_id);
        /** Lookup the hdl rec by client_id  **/
        if (nullptr == (clma_hdl_rec = clma_find_hdl_rec_by_client_id(
-                          cb, clmsv_msg->info.is_member_info.client_id))) {
-        TRACE("client_id not found");
-        TRACE_LEAVE();
-        return NCSCC_RC_FAILURE;
+              cb, clmsv_msg->info.is_member_info.client_id))) {
+          TRACE("client_id not found");
+          TRACE_LEAVE();
+          return NCSCC_RC_FAILURE;
        }
        clma_hdl_rec->is_member = clmsv_msg->info.is_member_info.is_member;
        clma_hdl_rec->is_configured =
-          clmsv_msg->info.is_member_info.is_configured;
+           clmsv_msg->info.is_member_info.is_configured;
+      if (NCSCC_RC_SUCCESS !=
+          m_NCS_IPC_SEND(&clma_hdl_rec->mbx, clmsv_msg,
+               static_cast<NCS_IPC_PRIORITY>(prio))) {
+          TRACE("IPC SEND FAILED");
+          TRACE_LEAVE();
+          return NCSCC_RC_FAILURE;
+      }
      } break;
      default:
        /** Unexpected message **/

_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to