Ack, code review only/Thanks HansN
-----Original Message-----
From: Gary Lee [mailto:[email protected]]
Sent: den 23 oktober 2015 07:18
To: Hans Nordebäck; [email protected]; [email protected]; Minh
Chau H; Gary Lee
Cc: [email protected]
Subject: [PATCH 1 of 1] amfd: allow SA_AIS_ERR_BAD_OPERATION to be returned to
caller of nodegroup op [#1559]
osaf/services/saf/amf/amfd/nodegroup.cc | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Assume an SU is in SA_AMF_PRESENCE_INSTANTIATION_FAILED or
SA_AMF_PRESENCE_TERMINATION_FAILED state.
If an admin operation is issued on a nodegroup hosting this SU, currently
TRY_AGAIN is returned to the caller. This may result in unnecessary retries. It
would be more appropriate to proprogate SA_AIS_ERR_BAD_OPERATION from
AVD_SU::check_su_stability() to the caller.
diff --git a/osaf/services/saf/amf/amfd/nodegroup.cc
b/osaf/services/saf/amf/amfd/nodegroup.cc
--- a/osaf/services/saf/amf/amfd/nodegroup.cc
+++ b/osaf/services/saf/amf/amfd/nodegroup.cc
@@ -960,7 +960,7 @@
rc = check_ng_stability(ng);
if (rc != SA_AIS_OK) {
report_admin_op_error(avd_cb->immOiHandle, invocation,
- SA_AIS_ERR_TRY_AGAIN, NULL,
+ rc, NULL,
"Some entity is unstable,
Operation cannot "
"be performed on '%s'"
"Check syslog for entity
details", ng_name->value); @@ -1030,7 +1030,7 @@
rc = check_ng_stability(ng);
if (rc != SA_AIS_OK) {
report_admin_op_error(avd_cb->immOiHandle, invocation,
- SA_AIS_ERR_TRY_AGAIN, NULL,
+ rc, NULL,
"Some entity is unstable,
Operation cannot "
"be performed on '%s'"
"Check syslog for entity
details", ng_name->value); @@ -1080,7 +1080,7 @@
rc = check_ng_stability(ng);
if (rc != SA_AIS_OK) {
report_admin_op_error(avd_cb->immOiHandle, invocation,
- SA_AIS_ERR_TRY_AGAIN, NULL,
+ rc, NULL,
"Some entity is unstable, Operation
cannot "
"be performed on '%s'"
"Check syslog for entity details",
ng_name->value); @@ -1133,7 +1133,7 @@
rc = check_ng_stability(ng);
if (rc != SA_AIS_OK) {
report_admin_op_error(avd_cb->immOiHandle, invocation,
- SA_AIS_ERR_TRY_AGAIN, NULL,
+ rc, NULL,
"Some entity is unstable, Operation
cannot "
"be performed on '%s'"
"Check syslog for entity details",
ng_name->value); @@ -1197,7 +1197,7 @@
rc = check_ng_stability(ng);
if (rc != SA_AIS_OK) {
report_admin_op_error(avd_cb->immOiHandle, invocation,
- SA_AIS_ERR_TRY_AGAIN, NULL,
+ rc, NULL,
"Some entity is unstable, Operation
cannot "
"be performed on '%s'"
"Check syslog for entity details",
ng_name->value);
------------------------------------------------------------------------------
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel