mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 07:19:18 +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.
|
||||
* 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
|
||||
*/
|
||||
public SolrCore register(String name, SolrCore core, boolean returnPrev) {
|
||||
public SolrCore register(String name, SolrCore core, boolean returnPrevNotClosed) {
|
||||
if( core == null ) {
|
||||
throw new RuntimeException( "Can not register a null core." );
|
||||
}
|
||||
@ -322,7 +322,7 @@ public class CoreContainer
|
||||
}
|
||||
else {
|
||||
log.info( "replacing core: "+name );
|
||||
if (!returnPrev) {
|
||||
if (!returnPrevNotClosed) {
|
||||
old.close();
|
||||
}
|
||||
return old;
|
||||
|
Loading…
x
Reference in New Issue
Block a user