*) Bugfix for "YaCy verzählt sich ..." Bug.

See: http://www.yacy-forum.de/viewtopic.php?p=9559

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@700 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent 43b42854a0
commit 8ba6be1d72

@ -80,21 +80,22 @@ public class IndexCreateLoaderQueue_p {
Thread[] threadList = new Thread[threadCount*2];
threadCount = loaderThreads.enumerate(threadList);
yacySeed initiator;
int i;
int i, count = 0;
for (i = 0; i < threadCount; i++) {
plasmaCrawlWorker theWorker = (plasmaCrawlWorker)threadList[i];
plasmaCrawlLoaderMessage theMsg = theWorker.theMsg;
if (theMsg == null) continue;
initiator = yacyCore.seedDB.getConnected(theMsg.initiator);
prop.put("loader-set_list_"+i+"_dark", ((dark) ? 1 : 0) );
prop.put("loader-set_list_"+i+"_initiator", ((initiator == null) ? "proxy" : initiator.getName()) );
prop.put("loader-set_list_"+i+"_depth", theMsg.depth );
prop.put("loader-set_list_"+i+"_url", theMsg.url ); // null pointer exception here !!! maybe url = null; check reason.
prop.put("loader-set_list_"+count+"_dark", ((dark) ? 1 : 0) );
prop.put("loader-set_list_"+count+"_initiator", ((initiator == null) ? "proxy" : initiator.getName()) );
prop.put("loader-set_list_"+count+"_depth", theMsg.depth );
prop.put("loader-set_list_"+count+"_url", theMsg.url ); // null pointer exception here !!! maybe url = null; check reason.
dark = !dark;
count++;
}
prop.put("loader-set_list", i );
prop.put("loader-set_num", i);
prop.put("loader-set_list", count );
prop.put("loader-set_num", count);
}
// return rewrite properties

Loading…
Cancel
Save