- some more/better asserts
- slight performance enhancements in remove method in index management. Works for all who do not run using asserts (the majority)
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4928 6c8d7289-2bf4-0310-a012-ef5d649a1542
@ -162,9 +162,9 @@ public class kelondroRowSet extends kelondroRowCollection implements kelondroInd
kelondroRow.Entryentry=super.get(index,true);
super.removeRow(index,keepOrder);
//System.out.println("remove: chunk found at index position (after remove) " + index + ", inset=" + serverLog.arrayList(super.chunkcache, super.rowdef.objectsize() * index, length) + ", searchkey=" + serverLog.arrayList(a, start, length));
intfindagainindex=find(a,start,length);
intfindagainindex=0;
//System.out.println("kelondroRowSet.remove");
assertfindagainindex<0:"remove: chunk found again at index position (after remove) "+findagainindex+", index(before) = "+index+", inset="+serverLog.arrayList(super.chunkcache,super.rowdef.objectsize*findagainindex,length)+", searchkey="+serverLog.arrayList(a,start,length);// check if the remove worked
assert(findagainindex=find(a,start,length))<0:"remove: chunk found again at index position (after remove) "+findagainindex+", index(before) = "+index+", inset="+serverLog.arrayList(super.chunkcache,super.rowdef.objectsize*findagainindex,length)+", searchkey="+serverLog.arrayList(a,start,length);// check if the remove worked