mirror of https://github.com/apache/lucene.git
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:
parent
52fa207f91
commit
644260621f
|
@ -244,10 +244,9 @@ public class DocBuilder {
|
|||
addStatusMessage("Deltas Obtained");
|
||||
addStatusMessage("Building documents");
|
||||
if (!deletedKeys.isEmpty()) {
|
||||
deleteAll(deletedKeys);
|
||||
importStatistics.deletedDocCount.addAndGet(deletedKeys.size());
|
||||
// Make sure that documents are not re-created
|
||||
allPks.removeAll(deletedKeys);
|
||||
deleteAll(deletedKeys);
|
||||
// Make sure that documents are not re-created
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue