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