keep the frequently used commands first

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@808290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-08-27 06:24:20 +00:00
parent b4dd3f78f4
commit c6a7e7831a
1 changed files with 8 additions and 8 deletions

View File

@ -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 change
if (commitPoint != null && replicationEnabled.get()) {
rsp.add(CMD_INDEX_VERSION, commitPoint.getVersion());
@ -179,6 +173,12 @@ 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);
}
}