From: Zdeněk Salvet Date: Mon, 11 Jun 2007 11:22:59 +0000 (+0000) Subject: Compatibility with pre-LBS seq. codes. X-Git-Tag: glite-lb-common_R_5_1_2_1~2 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=8462256d392f6e0f7eda0801e4541d30f665a1e4;p=jra1mw.git Compatibility with pre-LBS seq. codes. --- diff --git a/org.glite.lb.common/src/context.c b/org.glite.lb.common/src/context.c index 8be7d2c..14f4774 100644 --- a/org.glite.lb.common/src/context.c +++ b/org.glite.lb.common/src/context.c @@ -378,7 +378,10 @@ int edg_wll_SetSequenceCode(edg_wll_Context ctx, &c[EDG_WLL_SOURCE_LB_SERVER]); assert(EDG_WLL_SOURCE__LAST == 10); - if (res != EDG_WLL_SOURCE__LAST-1) + if (res == EDG_WLL_SOURCE_LB_SERVER-1) { + /* pre-collections compatibility */ + c[EDG_WLL_SOURCE_LB_SERVER] = 0; + } else if (res != EDG_WLL_SOURCE__LAST-1) return edg_wll_SetError(ctx, EINVAL, "edg_wll_SetSequenceCode(): syntax error in sequence code");