From: Jiří Filipovič Date: Tue, 8 Mar 2011 21:03:30 +0000 (+0000) Subject: fixed setting jobtype of subjobs X-Git-Tag: glite-lb-server_R_2_2_3_1~1 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=f2abb00d669bf19882ffbe651fbbc3a96a3d5a80;p=jra1mw.git fixed setting jobtype of subjobs --- 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;