extended last fix, preventing more sorts

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5533 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent f9672d3f97
commit 6cbca1e508

@ -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();
}

@ -58,7 +58,7 @@ public final class serverClassLoader extends ClassLoader {
// load the file from the file system
byte[] 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 stream
c = this.defineClass(null, b, 0, b.length);

Loading…
Cancel
Save