osaf/services/saf/avsv/avd/avd_comp.cc | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
AMFD changes SA_AMF_NO_RECOMMENDATION recovery to SA_AMF_COMPONENT_FAILOVER in
CCB modify
operation on saAmfCompRecoveryOnError attribute of component. But while sending
attribute
update to AMFND converted value is not passed and AMFND is updated with
SA_AMF_NO_RECOMMENDATION.
This patch ensures that AMFND is updated with SA_AMF_COMPONENT_FAILOVER when
value in CCB modify
operation for saAmfCompRecoveryOnError is SA_AMF_NO_RECOMMENDATION.
diff --git a/osaf/services/saf/avsv/avd/avd_comp.cc
b/osaf/services/saf/avsv/avd/avd_comp.cc
--- a/osaf/services/saf/avsv/avd/avd_comp.cc
+++ b/osaf/services/saf/avsv/avd/avd_comp.cc
@@ -1351,6 +1351,8 @@ static void comp_ccb_apply_modify_hdlr(s
value = &comp_type->saAmfCtDefRecoveryOnError;
recovery = *((SaUint32T *)value);
+ if (recovery == SA_AMF_NO_RECOMMENDATION)
+ recovery = SA_AMF_COMPONENT_FAILOVER;
param.attr_id = saAmfCompRecoveryOnError_ID;
param.value_len = sizeof(uint32_t);
recovery = htonl(recovery);
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel