lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r829682 - /lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java
Date Mon, 26 Oct 2009 00:19:13 GMT
Author: yonik
Date: Mon Oct 26 00:19:13 2009
New Revision: 829682

URL: http://svn.apache.org/viewvc?rev=829682&view=rev
Log:
replication future safety - only decrement search holder if not null

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java?rev=829682&r1=829681&r2=829682&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java Mon Oct 26
00:19:13 2009
@@ -851,7 +851,7 @@
         } catch (IOException e) {
           LOG.warn("Unable to get IndexCommit on startup", e);
         } finally {
-          s.decref();
+          if (s!=null) s.decref();
         }
       }
       String reserve = (String) master.get(RESERVE);



Mime
View raw message