int store_job_server_proxy(edg_wll_Context ctx, edg_wll_Event *event, int *register_to_JP)
{
char *unique = edg_wlc_JobIdGetUnique(event->any.jobId);
- char *q = NULL, *userid = NULL, *subj;
+ char *q = NULL, *userid = NULL, *subj = NULL;
glite_lbu_Statement stmt = NULL;
int nar, grey = 0;
char *can_peername = NULL;
return edg_wll_SetError(ctx,EPERM,"LB proxy can't store using unauthenticated connection");
- trio_asprintf(&q,"select proxy,server,grey from jobs where jobid='%|Ss' for update", event->any.jobId);
+ trio_asprintf(&q,"select proxy,server,grey from jobs where jobid='%|Ss' for update", unique);
nar = edg_wll_ExecSQL(ctx,q,&stmt);
int glite_lbu_QueryIndices(glite_lbu_DBContext ctx, const char *table, char ***key_names, char ****column_names) { return 0; }
int glite_lbu_DBError(glite_lbu_DBContext ctx, char **s1, char **s2) { return 0; }
-int edg_wll_JobStatus(
+int edg_wll_JobStatusServer(
edg_wll_Context ctx,
const edg_wlc_JobId job,
int flags,