[Openais] Parse error when setting saAmfCompDisableRestart to
TRUE
Hans Feldt
Hans.Feldt at ericsson.com
Thu Feb 1 23:03:32 PST 2007
Hi,
That piece of code has been fixed in trunk:
> } else if ((loc = strstr_rs (line, "saAmfCompDisableRestart=")) != 0) {
> if (strcmp (loc, "false") == 0) {
> comp->saAmfCompDisableRestart = SA_FALSE;
> } else if (strcmp (loc, "true") == 0) {
> comp->saAmfCompDisableRestart = SA_TRUE;
> } else {
> error_reason = "bad value";
> goto parse_error;
> }
Please observe that you have to use 'true' or 'false' as value for this
configuration key.
Regards,
Hans
Mujibur Rehman wrote:
> Hi ,
>
> I trying execute a scenario where I don't want component restart to
> happen during failure cases.
>
> In the *amf_conf *file I set the parameter *saAmfCompDisableRestart =
> TRUE*. It means that there should be no component restart during failure.
>
> but when I am running aisexec , I am getting parse error at
> /etc/ais/amf.conf: 49: returns bad value.
>
> I went through the *amf_util.c* file where there is code written to
> check the saAmfCompDisableRestart value.
>
> 671 } else if ((loc = strstr_rs (line,
> "saAmfCompDisableRestart")) != 0) {
> 672 //comp->saAmfCompDisableRestart =
> SA_TRUE;
> 673 if (strcmp (loc, "false") == 0) {
> 674
> comp->saAmfCompDisableRestart = SA_FALSE;
> 675 } else if (strcmp (loc, "true")
> == 0) {
> 676
> comp->saAmfCompDisableRestart = SA_TRUE;
> 677 } else {
> 678 error_reason = "returns
> bad value";
> 679 goto parse_error;
> 680 }
>
> By looking into code I got that it is going to else condition and
> returning a parse error.
>
>
> Please help me out why this is happening though I am correctly setting
> the saAmfCompDisableRestart = TRUE.
>
> Thanks,
> Mujibur Rehman.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Openais mailing list
> Openais at lists.osdl.org
> https://lists.osdl.org/mailman/listinfo/openais
More information about the Openais
mailing list