From 5702257a5f582dd9a39bf41b6438f53915b19847 Mon Sep 17 00:00:00 2001 From: orbiter Date: Fri, 6 Jul 2007 09:50:59 +0000 Subject: [PATCH] fix for elementCount bug when db was reset possible solution for http://forum.yacy-websuche.de/viewtopic.php?f=5&t=124&hilit= git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3955 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/kelondro/kelondroMapObjects.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/de/anomic/kelondro/kelondroMapObjects.java b/source/de/anomic/kelondro/kelondroMapObjects.java index 593061dfa..37c963d80 100644 --- a/source/de/anomic/kelondro/kelondroMapObjects.java +++ b/source/de/anomic/kelondro/kelondroMapObjects.java @@ -90,6 +90,7 @@ public class kelondroMapObjects extends kelondroObjects { long valuel; double valued; Map map; + this.elementCount = 0; while (it.hasNext()) { mapname = (String) it.next(); map = getMap(mapname); @@ -167,6 +168,7 @@ public class kelondroMapObjects extends kelondroObjects { } } } + this.elementCount = 0; } public synchronized void set(String key, Map newMap) throws IOException {