added -I -- dont increment initial seqcode glite-lb-client_R_2_1_1
authorAleš Křenek <ljocha@ics.muni.cz>
Thu, 1 Dec 2005 16:05:11 +0000 (16:05 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Thu, 1 Dec 2005 16:05:11 +0000 (16:05 +0000)
org.glite.lb.client/src/logevent.c.T

index c58f72b..b939e05 100644 (file)
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
        char    *ff = NULL, *jobid_s = NULL;
        char    *src_instance = NULL;
        int     err = 0/*,i,done = 0,fmtlen*/;
-       int     pri = 0;
+       int     pri = 0, noinc = 0;
        int             use_lbproxy = 0;
        char    *lbproxy_user = NULL;
        char    *lbproxy_store_sock = NULL;
@@ -91,6 +91,7 @@ int main(int argc, char *argv[])
            { EDG_WLL_ARGS_BOOL, "d", "debug mode", "enable debug mode", &deb },
 #ifdef ENABLE_REASON_LENGTH
            { EDG_WLL_ARGS_INT, "l", "reason-length", "extend 'reason' string to length (debug only)", &elength, 0, 1000000000 },
+           { EDG_WLL_ARGS_BOOL, "I", "dont-increment", "don't increment initial seqence code", &noinc },
 #endif
 @@@{
     my %typetab = (
@@ -187,6 +188,8 @@ int main(int argc, char *argv[])
                }
        }
 
+       if (noinc) edg_wll_SetSequenceCode(ctx,code,EDG_WLL_SEQ_NORMAL);
+
 #ifdef ENABLE_REASON_LENGTH
        if (elength > 200000000) {
                fprintf(stderr,"%s: usupported reason message length: %d\n", argv[0], elength);