mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 15:29:28 +00:00
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:
parent
235718d7bb
commit
98150f357a
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user