From: msweet Date: Mon, 7 Mar 2016 20:38:23 +0000 (+0000) Subject: The scheduler now reads the spool directory if one or more job cache entries X-Git-Tag: v2.2b1~99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac7c59abca0c3bff5d189e15720066d6a235a28c;p=thirdparty%2Fcups.git The scheduler now reads the spool directory if one or more job cache entries point to deleted jobs () git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@13120 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES.txt b/CHANGES.txt index df0d6a5668..32a2dcd934 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -3,6 +3,8 @@ CHANGES.txt - 2.2b1 - 2016-03-07 CHANGES IN CUPS V2.2b1 + - The scheduler now reads the spool directory if one or more job cache + entries point to deleted jobs () - Added support for disc media sizes () - The httpAddrConnect and httpConnect* APIs now try connecting to multiple addresses in parallel () diff --git a/scheduler/job.c b/scheduler/job.c index de40bae59d..b18c7ee199 100644 --- a/scheduler/job.c +++ b/scheduler/job.c @@ -4135,7 +4135,15 @@ load_job_cache(const char *filename) /* I - job.cache filename */ { cupsdLogMessage(CUPSD_LOG_ERROR, "[Job %d] Files have gone away.", jobid); - continue; + + /* + * job.cache file is out-of-date compared to spool directory; load + * that instead... + */ + + cupsFileClose(fp); + load_request_root(); + return; } }