tried to fix "Object type or Object type combination not supported" bug

see http://www.yacy-forum.de/viewtopic.php?p=16588#16588

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1592 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2006-02-09 22:32:18 +00:00
parent c70befbe9c
commit 4438a96b87

View File

@ -249,6 +249,7 @@ public class kelondroTree extends kelondroRecords implements kelondroIndex {
child = 0;
found = false;
int c;
byte[] k;
TreeSet visitedNodeKeys = new TreeSet(loopDetectionOrder); // to detect loops
// System.out.println("Starting Compare Loop in Database " + filename); // debug
while (thisHandle != null) {
@ -263,7 +264,8 @@ public class kelondroTree extends kelondroRecords implements kelondroIndex {
if (thenode == null) {
throw new kelondroException(filename, "kelondroTree.Search.process: thenode==null");
}
if (visitedNodeKeys.contains(thenode.getKey())) {
k = thenode.getKey();
if ((k != null) & (visitedNodeKeys.contains(k))) {
// we have loops in the database.
// to fix this, all affected nodes must be patched
thenode.setOHByte(magic, (byte) 1);