* Cancel Job if too many label errors
* => we are in a loop
*/
- if (jcr->label_errors > 100) {
- set_jcr_job_status(jcr, JS_ErrorTerminated);
+ if (jcr->label_errors++ > 100) {
Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
}
return jcr->label_status = VOL_NAME_ERROR;
* Cancel Job if too many label errors
* => we are in a loop
*/
- if (jcr->label_errors > 100) {
- set_jcr_job_status(jcr, JS_ErrorTerminated);
+ if (jcr->label_errors++ > 100) {
Jmsg(jcr, M_FATAL, 0, "%s", jcr->errmsg);
}
return jcr->label_status = VOL_NAME_ERROR;