Skip to content

Commit

Permalink
fixed double-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbiter committed Aug 20, 2012
1 parent 6fc5400 commit a049761
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/net/yacy/search/query/RWIProcess.java
Expand Up @@ -338,6 +338,11 @@ public void add(
assert (iEntry.urlhash().length == index.row().primaryKeyLength);
//if (iEntry.urlHash().length() != index.row().primaryKeyLength) continue;

// doublecheck for urls
if (this.urlhashes.has(iEntry.urlhash())) {
continue pollloop;
}

// increase flag counts
for ( int j = 0; j < 32; j++ ) {
if ( iEntry.flags().get(j) ) {
Expand Down Expand Up @@ -432,9 +437,7 @@ public void add(
}
}

// finally make a double-check and insert result to stack
// the url hashes should be unique, no reason to check that
//if (!this.urlhashes.has(iEntry.urlhash())) {
// finally extend the double-check and insert result to stack
this.urlhashes.putUnique(iEntry.urlhash());
rankingtryloop: while ( true ) {
try {
Expand Down

0 comments on commit a049761

Please sign in to comment.