[HER-1823] H3: adding SheetAssociations mid-crawl won't affect already queued CrawlURIs (sheet liveness)

* SheetsOverlayManager.java
    (applyOverlaysTo) clear previous info so redundant sheets don't accrete
This commit is contained in:
gojomo committed 2010-09-21 11:07:33 +00:00
1 parent 1ce23ecbcd
commit 7909954b8f
1 file changed
+1
@@ -310,6 +310,7 @@ BeanFactoryAware, OverlayMapsSource, ApplicationListener {
public void applyOverlaysTo(CrawlURI curi) {
curi.setOverlayMapsSource(this);
// apply SURT-based overlays
curi.getOverlayNames().clear(); // clear previous info
String effectiveSurt = SurtPrefixSet.getCandidateSurt(curi.getPolicyBasisUURI());
List<String> foundPrefixes = PrefixFinder.findKeys(sheetNamesBySurt, effectiveSurt);
for(String prefix : foundPrefixes) {