summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/net/yacy/kelondro/rwi/IndexCell.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/net/yacy/kelondro/rwi/IndexCell.java b/source/net/yacy/kelondro/rwi/IndexCell.java
index 58d29a16b..16e2626ec 100644
--- a/source/net/yacy/kelondro/rwi/IndexCell.java
+++ b/source/net/yacy/kelondro/rwi/IndexCell.java
@@ -302,13 +302,12 @@ public final class IndexCell<ReferenceType extends Reference> extends AbstractBu
synchronized (failedURLs) {
for (byte[] b: failedURLs.keySet()) try {words.put(b);} catch (RowSpaceExceededException e) {}
}
-
- for (byte[] b: words) {
- HandleSet urls;
- synchronized (failedURLs) {
- urls = failedURLs.remove(b);
+
+ synchronized (failedURLs) {
+ for (byte[] b: words) {
+ HandleSet urls = failedURLs.remove(b);
+ if (urls != null) remove(b, urls);
}
- remove(b, urls);
}
this.countCache.clear();
}