Hi Anders,

Comments inline.

On 2016/08/19 03:55 PM, anders.bjornerst...@telia.com wrote:
> Hi Neel,
>
> I just have two comments:
>
> 1) You say in a comment below: "saImmOiAugmentCcbInitialize is allowed in 
> completed callback, but it should be mainly used for calling 
> saImmOmCcbObjectRead"
> I think that should be stated more clearly as "..., but saImmOmCcbObjectRead 
> is the *only* augmentation allowed inside a completed callback.
> The other (mutating) ccb operations are not allowed. commit/abort for the 
> augmentation are of course allowed.
will update the README accordingly.
> 2) While trying to check the documentation I noticed that a dowload of 
> OpenSAF 5.0 does not include the extra (extended) README files under 
> osaf/services/saf/immsv.
> Only the base README file is there. But files such as README.SASTRINGT_API 
> are missing.
> There is probably something missing in some script that does the release 
> extraction.
will check with the release extraction scripts.

Thanks,
Neel.
> Thanks
> /AndersBj
>
>
>> ----Ursprungligt meddelande----
>> Från : reddy.neelaka...@oracle.com
>> Datum : 2016-08-19 - 11:45 (CEST)
>> Till : zoran.milinko...@ericsson.com, hung.d.ngu...@dektech.com.au
>> Kopia : opensaf-devel@lists.sourceforge.net
>> Ämne : [devel] [PATCH 1 of 1] imm: Allow saImmOmCcbObjectRead in completed 
>> callback when ROF is set to false [#1956]
>>
>> osaf/libs/agents/saf/imma/imma_oi_api.c |  3 ++-
>> osaf/services/saf/immsv/README          |  6 ++++++
>> 2 files changed, 8 insertions(+), 1 deletions(-)
>>
>>
>> diff --git a/osaf/libs/agents/saf/imma/imma_oi_api.c 
>> b/osaf/libs/agents/saf/imma/imma_oi_api.c
>> --- a/osaf/libs/agents/saf/imma/imma_oi_api.c
>> +++ b/osaf/libs/agents/saf/imma/imma_oi_api.c
>> @@ -3587,7 +3587,8 @@ getAdmoName(SaImmHandleT privateOmHandle
>>      } else {
>>          /* modify or delete => fetch admo attribute for object from server. 
>> */
>>          if((cbi->type != IMMA_CALLBACK_OI_CCB_DELETE) &&
>> -                (cbi->type != IMMA_CALLBACK_OI_CCB_MODIFY)) {
>> +                (cbi->type != IMMA_CALLBACK_OI_CCB_MODIFY) &&
>> +                    (cbi->type != IMMA_CALLBACK_OI_CCB_COMPLETED)) {
>>                  LOG_ER("Inconsistency in callback type:%u", cbi->type);
>>                  abort();
>>          }
>> diff --git a/osaf/services/saf/immsv/README b/osaf/services/saf/immsv/README
>> --- a/osaf/services/saf/immsv/README
>> +++ b/osaf/services/saf/immsv/README
>> @@ -2727,6 +2727,12 @@ The API works exactly the same way as sa
>>
>>     e) Safe read is not allowed using a runtime object as target.
>>
>> +   f) saImmOiAugmentCcbInitialize is allowed in completed callback, but it 
>> should be
>> +      mainly used for calling saImmOmCcbObjectRead. After 
>> saImmOiAugmentCcbInitialize
>> +      succeeds object create/delete/modify will not be called  because ccb 
>> will not
>> +      be in the state to execute the operations and ccb will be marked as 
>> abort.
>> +      After calling saImmOmCcbObjectRead, the augumentaion should be 
>> finalized.
>> +
>> Runtime attributes residing in a config object are handled exactly the same 
>> as for
>> saImmOmAccessorGet. The reason a safe-read call is not allowed on a runtime 
>> *object*
>> is that a runtime object *only* contains runtime attributes. Performing a 
>> safe-read
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Opensaf-devel mailing list
>> Opensaf-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/opensaf-devel
>>


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

Reply via email to