From df6ee4bac901797d5d53f965e0da30ee049d432d Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Fri, 19 Dec 2008 17:56:07 +0000 Subject: [PATCH] SOLR-930 -- reverting git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@728082 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/solr/core/SolrCore.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/java/org/apache/solr/core/SolrCore.java b/src/java/org/apache/solr/core/SolrCore.java index e606862abd6..128afe72341 100644 --- a/src/java/org/apache/solr/core/SolrCore.java +++ b/src/java/org/apache/solr/core/SolrCore.java @@ -698,10 +698,7 @@ public final class SolrCore implements SolrInfoMBean { */ public void close() { int count = refCount.decrementAndGet(); - if (count > 0){ - log.warn( "Attempted close on {} did not succeed because the new reference count {} is > 0. ", this, count ); - return; - } + if (count > 0) return; // close is called often, and only actually closes if nothing is using it. if (count < 0) { log.error("Too many close [count:{}] on {}. Please report this exception to solr-user@lucene.apache.org", count, this ); return;