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
pull/1/head
orbiter 18 years ago
parent 208b5297f1
commit 5702257a5f

@ -90,6 +90,7 @@ public class kelondroMapObjects extends kelondroObjects {
long valuel; long valuel;
double valued; double valued;
Map map; Map map;
this.elementCount = 0;
while (it.hasNext()) { while (it.hasNext()) {
mapname = (String) it.next(); mapname = (String) it.next();
map = getMap(mapname); 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 { public synchronized void set(String key, Map newMap) throws IOException {

Loading…
Cancel
Save