From f2abb00d669bf19882ffbe651fbbc3a96a3d5a80 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Tue, 8 Mar 2011 21:03:30 +0000 Subject: [PATCH] fixed setting jobtype of subjobs --- org.glite.lb.server/src/store.c.T | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.glite.lb.server/src/store.c.T b/org.glite.lb.server/src/store.c.T index 66a1efa..ddadbbb 100644 --- a/org.glite.lb.server/src/store.c.T +++ b/org.glite.lb.server/src/store.c.T @@ -690,7 +690,10 @@ edg_wll_ErrorCode intJobStat_embryonic( edg_wlc_JobIdDup(e->jobId, &intJobStat_to_JobStat(stat)->parent_job)) goto err; intJobStat_to_JobStat(stat)->state = EDG_WLL_JOB_SUBMITTED; intJobStat_to_JobStat(stat)->owner = strdup(e->user); - intJobStat_to_JobStat(stat)->jobtype = e->jobtype; + if (e->jobtype == EDG_WLL_REGJOB_FILE_TRANSFER_COLLECTION) + intJobStat_to_JobStat(stat)->jobtype = EDG_WLL_STAT_FILE_TRANSFER; + else /* be defensive here */ + intJobStat_to_JobStat(stat)->jobtype = EDG_WLL_STAT_SIMPLE; intJobStat_to_JobStat(stat)->stateEnterTimes[1 + EDG_WLL_JOB_SUBMITTED] = (int)e->timestamp.tv_sec; intJobStat_to_JobStat(stat)->lastUpdateTime = e->timestamp; intJobStat_to_JobStat(stat)->stateEnterTime = e->timestamp; -- 1.8.2.3