Reindex database with incomplete/bad jobs too (part 2).
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 27 Aug 2009 14:51:28 +0000 (14:51 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 27 Aug 2009 14:51:28 +0000 (14:51 +0000)
org.glite.lb.server/src/jobstat.c

index dbd2260..273072d 100644 (file)
@@ -670,6 +670,11 @@ static edg_wll_ErrorCode get_job_parent(edg_wll_Context ctx, glite_jobid_const_t
                goto err;
        }
 
+       if (strcmp(out, "*no parent job*") == 0) {
+               edg_wll_SetError(ctx,ENOENT,"No matching events found");
+               goto err;
+       }
+
        ret = glite_jobid_recreate((const char*) ctx->srvName,
                        ctx->srvPort, (const char *) out, parent);