From: Jiří Filipovič Date: Fri, 1 Jun 2012 09:18:50 +0000 (+0000) Subject: - sandbox collection registration without unnecessary events X-Git-Tag: merge_32_head_dst~5 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5901de717fb845df0d8cabf9ece941f6099dfd39;p=jra1mw.git - sandbox collection registration without unnecessary events --- diff --git a/org.glite.lb.client/src/register_sandbox.c b/org.glite.lb.client/src/register_sandbox.c index 9947719..df40cab 100644 --- a/org.glite.lb.client/src/register_sandbox.c +++ b/org.glite.lb.client/src/register_sandbox.c @@ -106,7 +106,8 @@ int main(int argc,char **argv) } if (!jobid_s || type == EDG_WLL_SANDBOX_SANDBOX_TYPE_UNDEFINED - || !from || !to) + || (nsubjobs==0 && (!from || !to)) + || (nsubjobs>0 && ((!from && to) || (from && !to)))) { usage(argv[0]); exit(1); @@ -142,7 +143,7 @@ int main(int argc,char **argv) "n/a","n/a", nsubjobs,NULL,&subjobs)); - if (nsubjobs == 0) { + if (from && to) { check_log(edg_wll_LogFileTransferRegister,ftjobid_s,(ctx,from,to)); } else { @@ -182,20 +183,20 @@ int main(int argc,char **argv) free(ftsubjobid_s); } - edg_wll_SetLoggingJob(ctx,ftjobid,NULL,EDG_WLL_SEQ_NORMAL); + /*edg_wll_SetLoggingJob(ctx,ftjobid,NULL,EDG_WLL_SEQ_NORMAL); check_log(edg_wll_RegisterFTSubjobs, ftjobid_s, ( ctx, ftjobid, "NS", nsubjobs, subjobs - )); + ));*/ for (i=0; subjobs[i]; i++) { char *ftsubjobid_s = edg_wlc_JobIdUnparse(subjobs[i]); edg_wll_SetLoggingJob(ctx, subjobs[i], NULL, EDG_WLL_SEQ_NORMAL); - check_log(edg_wll_LogFileTransferRegister, ftsubjobid_s,( - ctx, from, to - )); + //check_log(edg_wll_LogFileTransferRegister, ftsubjobid_s,( + // ctx, from, to + //)); check_log(edg_wll_LogSandbox, ftsubjobid_s, ( ctx, edg_wll_SandboxSandbox_typeToString(type),