mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) it's now possible to run more then one indexDistribution-Thread
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1673 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
4fe572164c
commit
e2af2a3f45
|
@ -551,8 +551,11 @@ public final class plasmaSwitchboard extends serverAbstractSwitch implements ser
|
|||
(int)getConfigLong("indexDistribution.maxOpenFiles",800)*/
|
||||
);
|
||||
indexDistribution.setCounts(150, 1, 3, 10000);
|
||||
deployThread("20_dhtdistribution", "DHT Distribution", "selection, transfer and deletion of index entries that are not searched on your peer, but on others", null,
|
||||
new serverInstantThread(indexDistribution, "job", null), 60000);
|
||||
getConfig("20_dhtdistribution_threads","1");
|
||||
for(int i=0; i<(int)getConfigLong("20_dhtdistribution_threads",1);i++) {
|
||||
deployThread("20_dhtdistribution_"+i, "DHT Distribution", "selection, transfer and deletion of index entries that are not searched on your peer, but on others", null,
|
||||
new serverInstantThread(indexDistribution, "job", null), 60000 + i*5000);
|
||||
}
|
||||
|
||||
// test routine for snippet fetch
|
||||
//Set query = new HashSet();
|
||||
|
|
|
@ -440,7 +440,7 @@ public final class plasmaWordIndexDistribution {
|
|||
}
|
||||
}
|
||||
|
||||
int deleteTransferIndexes(plasmaWordIndexEntryContainer[] indexContainers) {
|
||||
synchronized int deleteTransferIndexes(plasmaWordIndexEntryContainer[] indexContainers) {
|
||||
Iterator urlIter;
|
||||
plasmaWordIndexEntry indexEntry;
|
||||
String[] urlHashes;
|
||||
|
|
Loading…
Reference in New Issue
Block a user