osaf/services/saf/clmsv/clms/clms_main.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


This is necessary to avoid blocking in saflog during role changes.

diff --git a/osaf/services/saf/clmsv/clms/clms_main.c 
b/osaf/services/saf/clmsv/clms/clms_main.c
--- a/osaf/services/saf/clmsv/clms/clms_main.c
+++ b/osaf/services/saf/clmsv/clms/clms_main.c
@@ -33,6 +33,7 @@
 
 #include <nid_api.h>
 #include "clms.h"
+#include "saflog.h"
 
 /* ========================================================================
  *   DEFINITIONS
@@ -366,6 +367,11 @@ static uint32_t clms_init(void)
                goto done;
        }
 
+       /* Initialize with saflog. This is necessary to avoid
+        *  getting blocked by LOG during role change (switchover/failover)
+        */
+       saflogInit();
+
        rc = NCSCC_RC_SUCCESS;
 
  done:

------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
Opensaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to