Clear infoRegistry before closing searcher

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@681638 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-08-01 09:48:58 +00:00
parent e25d09c798
commit 670174c87b
1 changed files with 5 additions and 5 deletions

View File

@ -566,6 +566,11 @@ public final class SolrCore {
*/ */
public void close() { public void close() {
log.info(logid+" CLOSING SolrCore!"); log.info(logid+" CLOSING SolrCore!");
try {
infoRegistry.clear();
} catch (Exception e) {
SolrException.log(log, e);
}
try { try {
closeSearcher(); closeSearcher();
} catch (Exception e) { } catch (Exception e) {
@ -586,11 +591,6 @@ public final class SolrCore {
hook.close( this ); hook.close( this );
} }
} }
try {
infoRegistry.clear();
} catch (Exception e) {
SolrException.log(log, e);
}
} }
public boolean isClosed() { public boolean isClosed() {