Skip to content

Commit

Permalink
tried to fix "Object type or Object type combination not supported" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
orbiter committed Feb 9, 2006
1 parent c70befb commit 4438a96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/de/anomic/kelondro/kelondroTree.java
Expand Up @@ -249,6 +249,7 @@ protected void process(byte[] key) throws IOException {
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) {
Expand All @@ -263,7 +264,8 @@ protected void process(byte[] key) throws IOException {
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);
Expand Down

0 comments on commit 4438a96

Please sign in to comment.