Apache Lucene open-source search software
keep the frequently used commands first
Noble Paulc6a7e7831aa9
diff --git a/src/java/org/apache/solr/handler/ReplicationHandler.java b/src/java/org/apache/solr/handler/ReplicationHandler.javaindex 15dfbce7014..1e515774518 100644--- a/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -109,13 +109,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw}// This command does not give the current index version of the master// It gives the current 'replicateable' index version- if(CMD_ENABLE_REPL.equalsIgnoreCase(command)){- replicationEnabled.set(true);- rsp.add(STATUS, OK_STATUS);- } else if(CMD_DISABLE_REPL.equalsIgnoreCase(command)){- replicationEnabled.set(false);- rsp.add(STATUS, OK_STATUS);- } else if (command.equals(CMD_INDEX_VERSION)) {+ if (command.equals(CMD_INDEX_VERSION)) {IndexCommit commitPoint = indexCommitPoint; // make a copy so it won't changeif (commitPoint != null && replicationEnabled.get()) {rsp.add(CMD_INDEX_VERSION, commitPoint.getVersion());@@ -179,7 +173,13 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw} else if (command.equals(CMD_DETAILS)) {rsp.add(CMD_DETAILS, getReplicationDetails());RequestHandlerUtils.addExperimentalFormatWarning(rsp);- }+ } else if (CMD_ENABLE_REPL.equalsIgnoreCase(command)) {+ replicationEnabled.set(true);+ rsp.add(STATUS, OK_STATUS);+ } else if (CMD_DISABLE_REPL.equalsIgnoreCase(command)) {+ replicationEnabled.set(false);+ rsp.add(STATUS, OK_STATUS);+ }}private List<NamedList> getCommits() {