mirror of https://github.com/apache/lucene.git
SOLR-930 -- reverting
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@728082 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56ce812335
commit
df6ee4bac9
|
@ -698,10 +698,7 @@ public final class SolrCore implements SolrInfoMBean {
|
||||||
*/
|
*/
|
||||||
public void close() {
|
public void close() {
|
||||||
int count = refCount.decrementAndGet();
|
int count = refCount.decrementAndGet();
|
||||||
if (count > 0){
|
if (count > 0) return; // close is called often, and only actually closes if nothing is using it.
|
||||||
log.warn( "Attempted close on {} did not succeed because the new reference count {} is > 0. ", this, count );
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
log.error("Too many close [count:{}] on {}. Please report this exception to solr-user@lucene.apache.org", count, this );
|
log.error("Too many close [count:{}] on {}. Please report this exception to solr-user@lucene.apache.org", count, this );
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue