Skip to content

Apache Lucene open-source search software

In AddUpdateCommand remove one unused local and the getSchema.getUniqueKeyField method call that initialises it.

Christine Poerschkeff359248b3ff
diff --git a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
index 407ad30f2a7..377cb6b92b3 100644
--- a/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
+++ b/solr/core/src/java/org/apache/solr/update/AddUpdateCommand.java
@@ -168,7 +168,6 @@ public class AddUpdateCommand extends UpdateCommand implements Iterable<Document
{
List<SolrInputDocument> all = flatten(solrDoc);
- SchemaField uniq = req.getSchema().getUniqueKeyField();
String idField = getHashableId();
for (SolrInputDocument sdoc : all) {