Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fixed round-robin method of peer-ping order (the successfully pinged peer was not updated to current last-seed date)

orbiter07d1e989095b
diff --git a/source/de/anomic/yacy/yacyCore.java b/source/de/anomic/yacy/yacyCore.java
index 43ce7edc2..070cf97d2 100644
--- a/source/de/anomic/yacy/yacyCore.java
+++ b/source/de/anomic/yacy/yacyCore.java
@@ -322,6 +322,9 @@ public class yacyCore {
// success! we have published our peer to a senior peer
// update latest news from the other peer
log.logInfo("publish: handshaked " + this.seed.get(yacySeed.PEERTYPE, yacySeed.PEERTYPE_SENIOR) + " peer '" + this.seed.getName() + "' at " + this.seed.getPublicAddress());
+ // update last seed date
+ this.seed.setLastSeenUTC();
+ peerActions.peerArrival(this.seed, true);
}
} catch (Exception e) {
log.logSevere("publishThread: error with target seed " + seed.toString() + ": " + e.getMessage(), e);