bugfix for tryRemoveURLs

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2605 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent f644a1c3a7
commit d374ef2bbe

@ -381,11 +381,11 @@ public final class indexRAMCacheRI extends indexAbstractRI implements indexRI {
synchronized (cache) {
Iterator i = cache.entrySet().iterator();
Map.Entry entry;
Long l;
String wordhash;
indexContainer c;
while (i.hasNext()) {
entry = (Map.Entry) i.next();
l = (Long) entry.getKey();
wordhash = (String) entry.getKey();
// get container
c = (indexContainer) entry.getValue();
@ -393,7 +393,7 @@ public final class indexRAMCacheRI extends indexAbstractRI implements indexRI {
if (c.size() == 0) {
i.remove();
} else {
cache.put(l, c); // superfluous?
cache.put(wordhash, c); // superfluous?
}
delCount++;
}

Loading…
Cancel
Save