fix for crawl stack database format change, introduced in SVN 4113

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4115 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent af25c98306
commit 5b1a937ed8

@ -490,10 +490,10 @@ public final class plasmaCrawlStacker {
// do nothing..
}
if (this.dbtype == QUEUE_DB_TYPE_FLEX) {
kelondroFlexWidthArray.delete(cacheStacksPath, "urlNoticeStacker7.db");
kelondroFlexWidthArray.delete(cacheStacksPath, "urlNoticeStacker8.db");
}
if (this.dbtype == QUEUE_DB_TYPE_TREE) {
File cacheFile = new File(cacheStacksPath, "urlNoticeStacker.db");
File cacheFile = new File(cacheStacksPath, "urlNoticeStacker8.db");
cacheFile.delete();
}
}
@ -505,7 +505,7 @@ public final class plasmaCrawlStacker {
this.urlEntryCache = new kelondroRowSet(plasmaCrawlEntry.rowdef, 0);
}
if (this.dbtype == QUEUE_DB_TYPE_FLEX) {
String newCacheName = "urlNoticeStacker7.db";
String newCacheName = "urlNoticeStacker8.db";
cacheStacksPath.mkdirs();
try {
this.urlEntryCache = new kelondroCache(new kelondroFlexTable(cacheStacksPath, newCacheName, preloadTime, plasmaCrawlEntry.rowdef, true), true, false);
@ -522,7 +522,7 @@ public final class plasmaCrawlStacker {
}
}
if (this.dbtype == QUEUE_DB_TYPE_TREE) {
File cacheFile = new File(cacheStacksPath, "urlNoticeStacker.db");
File cacheFile = new File(cacheStacksPath, "urlNoticeStacker8.db");
cacheFile.getParentFile().mkdirs();
this.urlEntryCache = new kelondroCache(kelondroTree.open(cacheFile, true, preloadTime, plasmaCrawlEntry.rowdef), true, true);
}

Loading…
Cancel
Save