do not complain on jobids with no events
case EPERM:
ret = HTTP_UNAUTH;
break;
+ case ENOENT:
+ ret = HTTP_NOTFOUND;
+ break;
/* fatal errors */
case ENOMEM:
}
edg_wll_FreeStmt(&q);
- if (ret == 0 && dumped == 0) {
- if (ctx->strict_locking) unlock_and_check(ctx,job);
- fprintf(stderr,"%s: no events, i.e. no such job or internal inconsistency\n",dbjob);
- edg_wll_SetError(ctx,ENOENT,dbjob);
- goto clean;
- }
unlock:
if (ctx->strict_locking) unlock_and_check(ctx,job);