[Openais] AMF patch SG configuration attributes
Lars Holm
lars.holm at ericsson.com
Fri Sep 29 04:21:21 PDT 2006
Hi,
Looks fine. Please do the commit.
Regards,
Lars Holm
Hans Feldt wrote:
> Two configuration attributes for SG objects were not handled correctly
> by the config parser.
>
> Regards,
> Hans
>
>------------------------------------------------------------------------
>
>Index: amfsg.c
>===================================================================
>--- amfsg.c (revision 1247)
>+++ amfsg.c (working copy)
>@@ -1502,6 +1502,7 @@
> sg->saAmfSGNumPrefActiveSUs = 1;
> sg->saAmfSGNumPrefStandbySUs = 1;
> sg->saAmfSGNumPrefInserviceSUs = ~0;
>+ sg->saAmfSGNumPrefAssignedSUs = ~0;
> sg->saAmfSGCompRestartProb = -1;
> sg->saAmfSGCompRestartMax = ~0;
> sg->saAmfSGSuRestartProb = -1;
>Index: amfutil.c
>===================================================================
>--- amfutil.c (revision 1247)
>+++ amfutil.c (working copy)
>@@ -463,6 +463,10 @@
> sg->saAmfSGNumPrefActiveSUs = atoi (loc);
> } else if ((loc = strstr_rs (line, "saAmfSGNumPrefStandbySUs=")) != 0) {
> sg->saAmfSGNumPrefStandbySUs = atoi (loc);
>+ } else if ((loc = strstr_rs (line, "saAmfSGNumPrefInserviceSUs=")) != 0) {
>+ sg->saAmfSGNumPrefInserviceSUs = atoi (loc);
>+ } else if ((loc = strstr_rs (line, "saAmfSGNumPrefAssignedSUs=")) != 0) {
>+ sg->saAmfSGNumPrefAssignedSUs = atoi (loc);
> } else if ((loc = strstr_rs (line, "saAmfSGMaxActiveSIsperSUs=")) != 0) {
> sg->saAmfSGMaxActiveSIsperSUs = atoi (loc);
> } else if ((loc = strstr_rs (line, "saAmfSGMaxStandbySIsperSUs=")) != 0) {
>@@ -515,6 +519,10 @@
> if (sg->saAmfSGNumPrefInserviceSUs == ~0) {
> sg->saAmfSGNumPrefInserviceSUs = su_cnt;
> }
>+ if (sg->saAmfSGNumPrefAssignedSUs == ~0) {
>+ sg->saAmfSGNumPrefAssignedSUs =
>+ sg->saAmfSGNumPrefInserviceSUs;
>+ }
> current_parse = AMF_APPLICATION;
> } else {
> goto parse_error;
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Openais mailing list
>Openais at lists.osdl.org
>https://lists.osdl.org/mailman/listinfo/openais
>
>
More information about the Openais
mailing list