if (edg_wll_ExecStmt(ctx,stmt,NULL) < 0) goto cleanup;
}
- if (ctx->rgma_export) write2rgma_status(&stat->pub);
-
cleanup:
free(stmt);
free(jobid_md5); free(stat_enc);
char *errstring = NULL;
intJobStat jobstat;
edg_wll_JobStat oldstat;
+ char *oldstat_rgmaline = NULL;
memset(&oldstat,0,sizeof oldstat);
if (seq != 0) {
}
if (seq != 0 && !intErr) {
edg_wll_CpyStatus(&ijsp->pub,&oldstat);
+
+ if (ctx->rgma_export) oldstat_rgmaline = write2rgma_statline(&ijsp->pub);
+
res = processEvent(ijsp, e, seq, be_strict, &errstring);
if (res == RET_FATAL || res == RET_INTERNAL) { /* !strict */
edg_wll_FreeStatus(&oldstat);
}
edg_wll_StoreIntState(ctx, ijsp, seq);
edg_wll_UpdateStatistics(ctx,&oldstat,e,&ijsp->pub);
+
+ if (ctx->rgma_export) write2rgma_chgstatus(&ijsp->pub, oldstat_rgmaline);
+
if (stat_out) {
memcpy(stat_out,&ijsp->pub,sizeof *stat_out);
destroy_intJobStat_extension(ijsp);
edg_wll_UpdateStatistics(ctx,NULL,e,&jobstat.pub);
+ if (ctx->rgma_export) write2rgma_status(&jobstat.pub);
+
if (stat_out) {
memcpy(stat_out,&jobstat.pub,sizeof *stat_out);
destroy_intJobStat_extension(&jobstat);
char *enc_intJobStat(char *, intJobStat* );
void write2rgma_status(edg_wll_JobStat *);
+void write2rgma_chgstatus(edg_wll_JobStat *, char *);
+char* write2rgma_statline(edg_wll_JobStat *);
int before_deep_resubmission(const char *, const char *);
int same_branch(const char *, const char *);