fixed bug with news caching

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@754 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 20 years ago
parent 14bc880fa4
commit af9021e956

@ -68,13 +68,13 @@ public class yacyNewsDB {
this.bufferkb = bufferkb;
if (path.exists())
news = new kelondroTree(path, bufferkb);
news = new kelondroTree(path, bufferkb * 0x400);
else
news = createDB(path,bufferkb);
news = createDB(path, bufferkb);
}
private static kelondroTree createDB(File path, int bufferkb) throws IOException {
return new kelondroTree(path, bufferkb, new int[] {
return new kelondroTree(path, bufferkb * 0x400, new int[] {
yacyNewsRecord.idLength(), // id = created + originator
yacyNewsRecord.categoryStringLength, // category
yacyCore.universalDateShortPattern.length(), // received

Loading…
Cancel
Save