Skip to content

Commit

Permalink
DBImport: remove words from source index even if nothing has been add…
Browse files Browse the repository at this point in the history
…ed to home index

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1849 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
hermens committed Mar 7, 2006
1 parent 3385b57 commit b347133
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/de/anomic/plasma/dbImport/plasmaDbImporter.java
Expand Up @@ -184,8 +184,7 @@ public void importWordsDB() {
if (isAborted()) break;

// importing entity container to home db
if (newContainer.size() == 0) continue;
this.homeWordIndex.addEntries(newContainer, System.currentTimeMillis(), false);
if (newContainer.size() > 0) { this.homeWordIndex.addEntries(newContainer, System.currentTimeMillis(), false); }

// delete complete index entity file
this.importWordIndex.deleteIndex(this.wordHash);
Expand Down

0 comments on commit b347133

Please sign in to comment.