lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r794203 - /lucene/solr/trunk/src/java/org/apache/solr/handler/ReplicationHandler.java
Date Wed, 15 Jul 2009 08:59:29 GMT
Author: noble
Date: Wed Jul 15 08:59:29 2009
New Revision: 794203

URL: http://svn.apache.org/viewvc?rev=794203&view=rev
Log:
the snapshoot config param is renamed to backupAfter

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=794203&r1=794202&r2=794203&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 Wed Jul 15
08:59:29 2009
@@ -744,19 +744,19 @@
         }
         LOG.info("Replication enabled for following config files: " + includeConfFiles);
       }
-      List snapshot = master.getAll("snapshot");
-      boolean snapshotOnCommit = snapshot.contains("commit");
-      boolean snapshotOnOptimize = snapshot.contains("optimize");
+      List backup = master.getAll("backupAfter");
+      boolean backupOnCommit = backup.contains("commit");
+      boolean backupOnOptimize = backup.contains("optimize");
       List replicateAfter = master.getAll(REPLICATE_AFTER);
       replicateOnCommit = replicateAfter.contains("commit");
       replicateOnOptimize = replicateAfter.contains("optimize");
 
-      if (replicateOnOptimize || snapshotOnOptimize) {
-        core.getUpdateHandler().registerOptimizeCallback(getEventListener(snapshotOnOptimize,
replicateOnOptimize));
+      if (replicateOnOptimize || backupOnOptimize) {
+        core.getUpdateHandler().registerOptimizeCallback(getEventListener(backupOnOptimize,
replicateOnOptimize));
       }
-      if (replicateOnCommit || snapshotOnCommit) {
+      if (replicateOnCommit || backupOnCommit) {
         replicateOnCommit = true;
-        core.getUpdateHandler().registerCommitCallback(getEventListener(snapshotOnCommit,
replicateOnCommit));
+        core.getUpdateHandler().registerCommitCallback(getEventListener(backupOnCommit, replicateOnCommit));
       }
       if (replicateAfter.contains("startup")) {
         replicateOnStart = true;



Mime
View raw message