Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
extended last fix, preventing more sorts
orbiter6cbca1e508fa
diff --git a/source/de/anomic/kelondro/kelondroRowCollection.java b/source/de/anomic/kelondro/kelondroRowCollection.javaindex ff4e29933..a9a8e81e5 100644--- a/source/de/anomic/kelondro/kelondroRowCollection.java+++ b/source/de/anomic/kelondro/kelondroRowCollection.java@@ -253,9 +253,11 @@ public class kelondroRowCollection implements Iterable<kelondroRow.Entry> {public synchronized final void set(final int index, final kelondroRow.Entry a) {assert (index >= 0) : "set: access with index " + index + " is below zero";ensureSize(index + 1);+ boolean sameKey = match(a.bytes(), 0, a.cellwidth(0), index);+ //if (sameKey) System.out.print("$");a.writeToArray(chunkcache, index * rowdef.objectsize);if (index >= this.chunkcount) this.chunkcount = index + 1;- if (index < this.sortBound) this.sortBound = index;+ if (!sameKey && index < this.sortBound) this.sortBound = index;this.lastTimeWrote = System.currentTimeMillis();}diff --git a/source/de/anomic/server/serverClassLoader.java b/source/de/anomic/server/serverClassLoader.javaindex b6011bba7..9267e053f 100644--- a/source/de/anomic/server/serverClassLoader.java+++ b/source/de/anomic/server/serverClassLoader.java@@ -58,7 +58,7 @@ public final class serverClassLoader extends ClassLoader {// load the file from the file systembyte[] b;try {- System.out.println("*** DEBUG CLASSLOADER: " + classfile + "; file " + (classfile.exists() ? "exists": "does not exist"));+ //System.out.println("*** DEBUG CLASSLOADER: " + classfile + "; file " + (classfile.exists() ? "exists": "does not exist"));b = serverFileUtils.read(classfile);// make a class out of the streamc = this.defineClass(null, b, 0, b.length);