changed the variable name according to SOLR-916

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@790041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-07-01 05:24:30 +00:00
parent 235718d7bb
commit 98150f357a

View File

@ -295,11 +295,11 @@ public class CoreContainer
/** /**
* Registers a SolrCore descriptor in the registry using the specified name. * Registers a SolrCore descriptor in the registry using the specified name.
* If returnPrev==false, the old core, if different, is closed. if true, it is returned w/o closing the core * If returnPrevNotClosed==false, the old core, if different, is closed. if true, it is returned w/o closing the core
* *
* @return a previous core having the same name if it existed * @return a previous core having the same name if it existed
*/ */
public SolrCore register(String name, SolrCore core, boolean returnPrev) { public SolrCore register(String name, SolrCore core, boolean returnPrevNotClosed) {
if( core == null ) { if( core == null ) {
throw new RuntimeException( "Can not register a null core." ); throw new RuntimeException( "Can not register a null core." );
} }
@ -322,7 +322,7 @@ public class CoreContainer
} }
else { else {
log.info( "replacing core: "+name ); log.info( "replacing core: "+name );
if (!returnPrev) { if (!returnPrevNotClosed) {
old.close(); old.close();
} }
return old; return old;