SOLR-1180

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@777479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-05-22 11:27:17 +00:00
parent 52fa207f91
commit 644260621f
1 changed files with 2 additions and 2 deletions

View File

@ -244,10 +244,9 @@ public class DocBuilder {
addStatusMessage("Deltas Obtained");
addStatusMessage("Building documents");
if (!deletedKeys.isEmpty()) {
allPks.removeAll(deletedKeys);
deleteAll(deletedKeys);
importStatistics.deletedDocCount.addAndGet(deletedKeys.size());
// Make sure that documents are not re-created
allPks.removeAll(deletedKeys);
}
deletedKeys = null;
@ -275,6 +274,7 @@ public class DocBuilder {
while (iter.hasNext()) {
Map<String, Object> map = iter.next();
writer.deleteDoc(map.get(root.pk));
importStatistics.deletedDocCount.incrementAndGet();
iter.remove();
}
}