lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r816042 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java
Date Thu, 17 Sep 2009 04:00:41 GMT
Author: noble
Date: Thu Sep 17 04:00:41 2009
New Revision: 816042

URL: http://svn.apache.org/viewvc?rev=816042&view=rev
Log:
SOLR-1440 LineEntityprocessor does not reinitialize the reader after init

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java?rev=816042&r1=816041&r2=816042&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/LineEntityProcessor.java
Thu Sep 17 04:00:41 2009
@@ -127,9 +127,11 @@
 
     @Override
     public void destroy() {
-        if (reader != null)
-            IOUtils.closeQuietly(reader);
-        super.destroy();
+      if (reader != null) {
+        IOUtils.closeQuietly(reader);
+      }
+      reader= null;
+      super.destroy();
     }
 
   /**



Mime
View raw message