*) avoid performance loss if log level is greater than 'fine'

See: http://www.yacy-forum.de/viewtopic.php?p=25180

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2467 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 18 years ago
parent b515d49f87
commit 959b779aba

@ -290,6 +290,7 @@ public class plasmaDHTChunk {
} }
String wordHash = indexContainers[i].getWordHash(); String wordHash = indexContainers[i].getWordHash();
count += wordIndex.removeEntries(this.indexContainers[i].getWordHash(), urlHashes, true); count += wordIndex.removeEntries(this.indexContainers[i].getWordHash(), urlHashes, true);
if (log.isFine())
log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left"); log.logFine("Deleted partial index (" + c + " URLs) for word " + wordHash + "; " + this.wordIndex.indexSize(wordHash) + " entries left");
this.indexContainers[i] = null; this.indexContainers[i] = null;
} }

Loading…
Cancel
Save