*) deleting empty entities during index selection

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1086 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent ca26aab9b1
commit 3631cb1f6d

@ -378,6 +378,13 @@ public final class plasmaWordIndexDistribution {
indexEntity.removeEntry(nextUrlHash, true);
this.urlPool.loadedURL.remove(nextUrlHash);
}
// deleting entity if there are no more entries left
// This could occure if there are unknownURLs in the entity
if (indexEntity.size() == 0) {
indexEntity.deleteComplete();
}
// use whats remaining
this.log.logFine("Selected partial index (" + tmpEntity.size() + " from " + indexEntity.size() +" URLs, " + unknownURLEntries.size() + " not bound) for word " + tmpEntity.wordHash());
tmpEntities.add(tmpEntity);

@ -626,7 +626,7 @@ public final class yacy {
while (words.hasMoreElements()) try {
wordfile = (File) words.nextElement();
wordhash = wordfile.getName().substring(0, 12);
System.out.println("NOW: " + wordhash);
//System.out.println("NOW: " + wordhash);
migrationStatus = wordIndexCache.migrateWords2Assortment(wordhash);
if (migrationStatus instanceof Integer) {
int migrationCount = ((Integer)migrationStatus).intValue();

Loading…
Cancel
Save