mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 14:15:47 +00:00
Fix for WorkQueueFrontier.deleteURIs mishandles deletions from retired
queues (HER-2062)
This commit is contained in:
@@ -1075,8 +1075,12 @@ implements Closeable,
|
||||
if (queuePat.matcher(qname).matches()) {
|
||||
WorkQueue wq = getQueueFor(qname);
|
||||
wq.unpeek(null);
|
||||
count += wq.deleteMatching(this, uriRegex);
|
||||
long delCount = wq.deleteMatching(this, uriRegex);
|
||||
if (!wq.isRetired()) {
|
||||
count += delCount;
|
||||
}
|
||||
wq.makeDirty();
|
||||
|
||||
}
|
||||
}
|
||||
decrementQueuedCount(count);
|
||||
|
||||
Reference in New Issue
Block a user