Clang: Do not expire job requests with newer document revision

...than currently reflected in documents. Otherwise such requests expire
immediately.

Needed for a follow-up change.

Change-Id: I456aea02a0fee9b9602a59a99943da13a01472d9
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-06-07 14:44:32 +02:00
parent bc22192813
commit 18bdbe1b0f

View File

@@ -124,7 +124,7 @@ bool JobQueue::isJobRequestExpired(const JobRequest &jobRequest) const
}
if (expirationReasons.testFlag(JobRequest::DocumentRevisionChanged)) {
if (document.documentRevision() != jobRequest.documentRevision) {
if (document.documentRevision() > jobRequest.documentRevision) {
qCDebug(jobsLog) << "Removing due to changed document revision:" << jobRequest;
return true;
}