From 8462256d392f6e0f7eda0801e4541d30f665a1e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20Salvet?= Date: Mon, 11 Jun 2007 11:22:59 +0000 Subject: [PATCH] Compatibility with pre-LBS seq. codes. --- org.glite.lb.common/src/context.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- 1.8.2.3