From d120507c9be1eb04f00325f28557e911a4738720 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Tue, 18 Jul 2006 13:52:03 +0000 Subject: [PATCH] use icnames in bufferedInsertInit --- org.glite.lb.server/src/store.c.T | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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 -- 1.8.2.3