From: Miloš Mulač Date: Tue, 18 Jul 2006 13:52:03 +0000 (+0000) Subject: use icnames in bufferedInsertInit X-Git-Tag: gridsite-core_R_1_3_2~50 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=d120507c9be1eb04f00325f28557e911a4738720;p=jra1mw.git use icnames in bufferedInsertInit --- diff --git a/org.glite.lb.server/src/store.c.T b/org.glite.lb.server/src/store.c.T index e91445b..ce6733a 100644 --- a/org.glite.lb.server/src/store.c.T +++ b/org.glite.lb.server/src/store.c.T @@ -644,7 +644,7 @@ static int register_subjobs_embryonic(edg_wll_Context ctx,const edg_wll_RegJobEv edg_wlc_JobId *subjobs; struct timeval now; char *userid = strdup(strmd5(e->user,NULL)); - char *jobid_md5, *jobid_md5_old; + char *jobid_md5, *jobid_md5_old, *states_cols; size_t jobid_len; edg_wll_bufInsert bi_j, bi_s; edg_wll_bufInsert *bi_jobs = &bi_j, *bi_states = &bi_s; @@ -673,15 +673,12 @@ static int register_subjobs_embryonic(edg_wll_Context ctx,const edg_wll_RegJobEv return edg_wll_SetError(ctx, EINVAL, "edg_wll_bufferedInsertInit()"); } -// XXX: use icnames here - - if (edg_wll_bufferedInsertInit(ctx, bi_states, NULL, "states", 4000, 1000, - "jobid, status, seq,int_status, version, parent_job, `STD_location`," - "`STD_owner`, `STD_destination`, `TIME_Cleared`, `TIME_Aborted`," - "`TIME_Cancelled`, `TIME_Submitted`")) + asprintf(&states_cols,"jobid, status, seq,int_status, version, parent_job%s", icnames); + if (edg_wll_bufferedInsertInit(ctx, bi_states, NULL, "states", 4000, 1000, states_cols)) { return edg_wll_SetError(ctx, EINVAL, "edg_wll_bufferedInsertInit()"); } + free(states_cols); #endif