Hi Ingvar,
                Can you please upload syslog(when problem has occurred) and 
test steps to reproduce, so that I can test it from Amf point of view.

Thanks
-Nagu

> -----Original Message-----
> From: Ingvar Bergstrom [mailto:[email protected]]
> Sent: 19 August 2014 12:25
> To: Nagendra Kumar
> Cc: [email protected]
> Subject: [PATCH 1 of 1] smf: read rollback data before IMM object is deleted
> [#993]
> 
>  osaf/services/saf/smfsv/smfd/SmfImmOperation.cc |  14 +++++++-------
>  1 files changed, 7 insertions(+), 7 deletions(-)
> 
> 
> For campaign IMM CCB delete operations, SMF does now read object data to
> create rollback information before the IMM CCB delete operation.
> 
> The fault was detected when Ticket #426 was introduced.
> 
> diff --git a/osaf/services/saf/smfsv/smfd/SmfImmOperation.cc
> b/osaf/services/saf/smfsv/smfd/SmfImmOperation.cc
> --- a/osaf/services/saf/smfsv/smfd/SmfImmOperation.cc
> +++ b/osaf/services/saf/smfsv/smfd/SmfImmOperation.cc
> @@ -652,13 +652,6 @@ SmfImmDeleteOperation::execute(SmfRollba
>               return result;
>       }
> 
> -     result = immutil_saImmOmCcbObjectDelete(m_ccbHandle,
> &objectName);
> -     if (result != SA_AIS_OK) {
> -             LOG_NO("SmfImmDeleteOperation::execute,
> immutil_saImmOmCcbObjectDelete failed rc=%s (child objects maybe exists)",
> saf_error(result));
> -                TRACE_LEAVE();
> -             return result;
> -     }
> -
>          if (o_rollbackData != NULL) {
>                  if ((result = this->prepareRollback(o_rollbackData)) != 
> SA_AIS_OK) {
>                          LOG_NO("SmfImmDeleteOperation::execute, failed to 
> prepare
> rollback data rc=%s", saf_error(result));
> @@ -667,6 +660,13 @@ SmfImmDeleteOperation::execute(SmfRollba
>                  }
>          }
> 
> +     result = immutil_saImmOmCcbObjectDelete(m_ccbHandle,
> &objectName);
> +     if (result != SA_AIS_OK) {
> +             LOG_NO("SmfImmDeleteOperation::execute,
> immutil_saImmOmCcbObjectDelete failed rc=%s (child objects maybe exists)",
> saf_error(result));
> +                TRACE_LEAVE();
> +             return result;
> +     }
> +
>       //Release IMM ownership
>       //This is not needed when saImmOmAdminOwnerInitialize
> "releaseOwnershipOnFinalize" is set to true
>       //The ownership will be automatically released at
> saImmOmAdminOwnerFinalize

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to