*) Bugfix for "too many open files" during index distribution

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1128 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent cc940a769b
commit 4e73035aef

@ -276,6 +276,11 @@ public final class plasmaWordIndexDistribution {
return indexCount;
} else {
log.logSevere("Index distribution failed. Too few peers (" + hc + ") received the index, not deleted locally.");
// simply close the indexEntities
for (int i = 0; i < indexEntities.length; i++) try {
indexEntities[i].close();
} catch (IOException ee) {}
return -1;
}
}

Loading…
Cancel
Save