STATIC_LIB_BK:=libglite_lb_bkserver.a
endif
+ifdef LB_DAG_EMBRIONIC
+ LB_DAG_FLAGS:=-DLB_DAG_EMBRIONIC
+endif
+
ifeq ($(GLITE_LB_SERVER_WITH_WS),yes)
WS_CFLAGS=-DGLITE_LB_SERVER_WITH_WS
NSMAP=LoggingAndBookkeeping.nsmap
-I${mysql_prefix}/include -I${mysql_prefix}/include/mysql \
-I${globus_prefix}/include/${nothrflavour} \
$(GRIDSITE_CFLAGS) \
- -D_GNU_SOURCE ${LB_STANDALONE_FLAGS} ${LB_PERF_FLAGS}
+ -D_GNU_SOURCE ${LB_STANDALONE_FLAGS} ${LB_PERF_FLAGS} ${LB_DAG_FLAGS}
ifdef LB_PROF
SRVBONES_LIB:= ${stagedir}/lib/libglite_lb_server_bones.la
jobid_md5 = edg_wlc_JobIdGetUnique(jobid);
parent_md5 = edg_wlc_JobIdGetUnique(parent_job);
stat_enc = enc_intJobStat(strdup(""), stat);
- if (jobid_md5 || parent_md5 == NULL || stat_enc == NULL) goto err;
+ if (jobid_md5 == NULL || parent_md5 == NULL || stat_enc == NULL) goto err;
if (edg_wll_IColumnsSQLPart(ctx, ctx->job_index_cols, stat, 1, icnames, &icvalues)) goto err;
err:
destroy_intJobStat(stat);
- free(jobid_md5); free(stat_enc);
+ free(jobid_md5);
+ free(stat_enc);
free(parent_md5);
*values = stmt;
return edg_wll_Error(ctx,NULL,NULL);
edg_wlc_JobId parent_job)
{
char *values = NULL;
- char *stmt;
- char *icnames, *icvalues;
+ char *stmt = NULL;
+ char *icnames = NULL;
if (states_values_embryonic(ctx, jobid, parent_job, &icnames, &values))
goto cleanup;
",parent_job%s) "
"values %s",
icnames, values);
- free(icnames); free(icvalues);
if (edg_wll_ExecStmt(ctx,stmt,NULL) < 0) goto cleanup;
cleanup:
- free(stmt);
+ free(icnames);
free(values);
+ free(stmt);
+
return edg_wll_Error(ctx,NULL,NULL);
}
static int check_dup(edg_wll_Context,edg_wll_Event *);
static int check_auth(edg_wll_Context,edg_wll_Event *e);
static int register_subjobs(edg_wll_Context,const edg_wll_RegJobEvent *);
-static int register_subjobs_embriotic(edg_wll_Context,const edg_wll_RegJobEvent *);
+static int register_subjobs_embrionic(edg_wll_Context,const edg_wll_RegJobEvent *);
void edg_wll_StoreAnonymous(edg_wll_Context ctx,int anon) {
ctx->allowAnonymous = anon;
e->any.type == EDG_WLL_EVENT_REGJOB &&
(e->regJob.jobtype == EDG_WLL_REGJOB_DAG ||
e->regJob.jobtype == EDG_WLL_REGJOB_PARTITIONED) &&
- e->regJob.nsubjobs > 0) err = register_subjobs(ctx,&e->regJob);
+ e->regJob.nsubjobs > 0)
+
+#ifdef LB_DAG_EMBRIONIC
+ err = register_subjobs_embrionic(ctx,&e->regJob);
+#else
+ err = register_subjobs(ctx,&e->regJob);
+#endif
clean:
return edg_wll_Error(ctx,NULL,NULL);
}
-static int register_subjobs_embriotic(edg_wll_Context ctx,const edg_wll_RegJobEvent *e)
+static int register_subjobs_embrionic(edg_wll_Context ctx,const edg_wll_RegJobEvent *e)
{
int i,err;
edg_wlc_JobId *subjobs;