lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r790041 - /lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java
Date Wed, 01 Jul 2009 05:24:30 GMT
Author: noble
Date: Wed Jul  1 05:24:30 2009
New Revision: 790041

URL: http://svn.apache.org/viewvc?rev=790041&view=rev
Log:
changed the variable name according to SOLR-916

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java?rev=790041&r1=790040&r2=790041&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/core/CoreContainer.java Wed Jul  1 05:24:30
2009
@@ -295,11 +295,11 @@
 
   /**
    * 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 @@
     }
     else {
       log.info( "replacing core: "+name );
-      if (!returnPrev) {
+      if (!returnPrevNotClosed) {
         old.close();
       }
       return old;



Mime
View raw message