Skip to content

Commit

Permalink
patch to get dht access to developer peers
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6958 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jun 30, 2010
1 parent 25024d6 commit 7188c54
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions source/de/anomic/yacy/yacySeedDB.java
Expand Up @@ -968,10 +968,12 @@ private seedEnum(final boolean up, final boolean rot, final byte[] firstKey, fin
this.minVersion = minVersion;
try {
it = (firstKey == null) ? database.maps(up, rot) : database.maps(up, rot, firstKey, secondKey);
float version;
while (true) {
nextSeed = internalNext();
if (nextSeed == null) break;
if (nextSeed.getVersion() >= this.minVersion) break;
version = nextSeed.getVersion();
if (version >= this.minVersion || version == 0.0) break; // include 0.0 to access always developer peers
}
} catch (final IOException e) {
Log.logException(e);
Expand Down Expand Up @@ -1034,13 +1036,15 @@ private yacySeed internalNext() {

public yacySeed next() {
final yacySeed seed = nextSeed;
float version;
try {while (true) {
nextSeed = internalNext();
if (nextSeed == null) break;
if (nextSeed.getVersion() >= this.minVersion) break;
version = nextSeed.getVersion();
if (version >= this.minVersion || version == 0.0) break; // include 0.0 to access always developer peers
}} catch (final kelondroException e) {
Log.logException(e);
// eergency reset
// emergency reset
yacyCore.log.logSevere("seed-db emergency reset", e);
try {
database.clear();
Expand Down

0 comments on commit 7188c54

Please sign in to comment.