lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1175646 - /lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java
Date Mon, 26 Sep 2011 02:13:23 GMT
Author: markrmiller
Date: Mon Sep 26 02:13:23 2011
New Revision: 1175646

URL: http://svn.apache.org/viewvc?rev=1175646&view=rev
Log:
SOLR-2793: Be sure to only dec ref if we inc ref'd

Modified:
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java?rev=1175646&r1=1175645&r2=1175646&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/SolrCore.java Mon Sep 26 02:13:23
2011
@@ -1268,7 +1268,7 @@ public final class SolrCore implements S
           );
         } catch(Exception e) {
           // if submit fails, newSearchHolder does not get decref'd
-          if (newSearchHolder != null) newSearchHolder.decref();
+          if (returnSearcher && newSearchHolder != null) newSearchHolder.decref();
           throw e;
         }
       }



Mime
View raw message