Skip to content

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

added missing success test in storeDocumentIndex, see http://forum.yacy-websuche.de/viewtopic.php?f=5&t=1922&hilit=

orbiter58802e4201ad
diff --git a/source/de/anomic/yacy/dht/Dispatcher.java b/source/de/anomic/yacy/dht/Dispatcher.java
index 71966cecd..4894ae19e 100755
--- a/source/de/anomic/yacy/dht/Dispatcher.java
+++ b/source/de/anomic/yacy/dht/Dispatcher.java
@@ -354,12 +354,12 @@ public class Dispatcher {
boolean success = chunk.transmit();
if (success && chunk.isFinished()) {
- // finished with this queue!
- this.log.logInfo("STORE: Chunk " + new String(chunk.primaryTarget()) + " has FINISHED all transmissions!");
- return chunk;
+ // finished with this queue!
+ this.log.logInfo("STORE: Chunk " + new String(chunk.primaryTarget()) + " has FINISHED all transmissions!");
+ return chunk;
}
- this.log.logInfo("STORE: Chunk " + new String(chunk.primaryTarget()) + " has failed to transmit index; marked peer as busy");
+ if (!success) this.log.logInfo("STORE: Chunk " + new String(chunk.primaryTarget()) + " has failed to transmit index; marked peer as busy");
if (chunk.canFinish()) {
try {