Ack. Not tested.

Thanks,
Ramesh.

On 12/18/2013 2:17 PM, mahesh.va...@oracle.com wrote:
>   osaf/services/saf/cpsv/cpnd/cpnd_evt.c  |  7 +++++++
>   osaf/services/saf/cpsv/cpnd/cpnd_proc.c |  3 ++-
>   2 files changed, 9 insertions(+), 1 deletions(-)
>
>
> diff --git a/osaf/services/saf/cpsv/cpnd/cpnd_evt.c 
> b/osaf/services/saf/cpsv/cpnd/cpnd_evt.c
> --- a/osaf/services/saf/cpsv/cpnd/cpnd_evt.c
> +++ b/osaf/services/saf/cpsv/cpnd/cpnd_evt.c
> @@ -685,6 +685,13 @@ static uint32_t cpnd_evt_proc_ckpt_open(
>               goto agent_rsp;
>       }
>   
> +     /* Check  maximum number of allowed replicas ,if exceeded Return Error 
> no resource */
> +     if (!(cb->num_rep < CPND_MAX_REPLICAS)) {
> +             LOG_ER("cpnd has exceeded the maximum number of allowed 
> replicas (CPND_MAX_REPLICAS)");
> +             send_evt.info.cpa.info.openRsp.error = SA_AIS_ERR_NO_RESOURCES;
> +             goto agent_rsp;
> +     }
> +
>       /* ckpt is not present locally */
>       /* if not present send to cpd,get the details...
>          Send the CPD_EVT_ND2D_CKPT_CREATE evt to CPD to get the ckpt details
> diff --git a/osaf/services/saf/cpsv/cpnd/cpnd_proc.c 
> b/osaf/services/saf/cpsv/cpnd/cpnd_proc.c
> --- a/osaf/services/saf/cpsv/cpnd/cpnd_proc.c
> +++ b/osaf/services/saf/cpsv/cpnd/cpnd_proc.c
> @@ -438,8 +438,9 @@ uint32_t cpnd_ckpt_replica_create(CPND_C
>       int32_t sec_cnt = 0;
>   
>       TRACE_ENTER();
> -     /* Return Error no resource */
> +     /* Check  maximum number of allowed replicas ,if exceeded Return Error 
> no resource */
>       if (!(cb->num_rep < CPND_MAX_REPLICAS)) {
> +             LOG_ER("cpnd has exceeded the maximum number of allowed 
> replicas (CPND_MAX_REPLICAS)");
>               TRACE_LEAVE();
>               return NCSCC_RC_FAILURE;
>       }


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&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