fixed double-check

pull/1/head
Michael Peter Christen 13 years ago
parent 6fc5400f91
commit a049761e0c

@ -338,6 +338,11 @@ public final class RWIProcess extends Thread
assert (iEntry.urlhash().length == index.row().primaryKeyLength); assert (iEntry.urlhash().length == index.row().primaryKeyLength);
//if (iEntry.urlHash().length() != index.row().primaryKeyLength) continue; //if (iEntry.urlHash().length() != index.row().primaryKeyLength) continue;
// doublecheck for urls
if (this.urlhashes.has(iEntry.urlhash())) {
continue pollloop;
}
// increase flag counts // increase flag counts
for ( int j = 0; j < 32; j++ ) { for ( int j = 0; j < 32; j++ ) {
if ( iEntry.flags().get(j) ) { if ( iEntry.flags().get(j) ) {
@ -432,9 +437,7 @@ public final class RWIProcess extends Thread
} }
} }
// finally make a double-check and insert result to stack // finally extend the double-check and insert result to stack
// the url hashes should be unique, no reason to check that
//if (!this.urlhashes.has(iEntry.urlhash())) {
this.urlhashes.putUnique(iEntry.urlhash()); this.urlhashes.putUnique(iEntry.urlhash());
rankingtryloop: while ( true ) { rankingtryloop: while ( true ) {
try { try {

Loading…
Cancel
Save