lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r790559 - /lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java
Date Thu, 02 Jul 2009 12:03:50 GMT
Author: noble
Date: Thu Jul  2 12:03:50 2009
New Revision: 790559

URL: http://svn.apache.org/viewvc?rev=790559&view=rev
Log:
SOLR-1216 snapshoot renamed to backup

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java?rev=790559&r1=790558&r2=790559&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java Thu Jul  2
12:03:50 2009
@@ -127,7 +127,7 @@
       getFileStream(solrParams, rsp);
     } else if (command.equals(CMD_GET_FILE_LIST)) {
       getFileList(solrParams, rsp);
-    } else if (command.equals(CMD_SNAP_SHOOT)) {
+    } else if (command.equalsIgnoreCase(CMD_BACKUP)) {
       doSnapShoot(solrParams, rsp);
     } else if (command.equalsIgnoreCase(CMD_FETCH_INDEX)) {
       new Thread() {
@@ -136,10 +136,10 @@
         }
       }.start();
       rsp.add("status", "OK");
-    } else if (command.equals(CMD_DISABLE_POLL)) {
+    } else if (command.equalsIgnoreCase(CMD_DISABLE_POLL)) {
       if (snapPuller != null)
         snapPuller.disablePoll();
-    } else if (command.equals(CMD_ENABLE_POLL)) {
+    } else if (command.equalsIgnoreCase(CMD_ENABLE_POLL)) {
       if (snapPuller != null)
         snapPuller.enablePoll();
     } else if (command.equalsIgnoreCase(CMD_ABORT_FETCH)) {
@@ -683,7 +683,7 @@
       details.add("slave", slave);
     NamedList snapshotStats = snapShootDetails;
     if (snapshotStats != null)
-      details.add(CMD_SNAP_SHOOT, snapshotStats);
+      details.add(CMD_BACKUP, snapshotStats);
     return details;
   }
 
@@ -943,7 +943,7 @@
 
   public static final String CMD_DETAILS = "details";
 
-  public static final String CMD_SNAP_SHOOT = "snapshoot";
+  public static final String CMD_BACKUP = "backup";
 
   public static final String CMD_FETCH_INDEX = "fetchindex";
 



Mime
View raw message