Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

must have lost this: when force=true, do not trust comparing version and generation - this is not a strong enough check

Mark Robert Miller21e0d0c90937
diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
index c6c25325b7f..9c900fddeaa 100644
--- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
+++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java
@@ -288,7 +288,7 @@ public class SnapPuller {
return true;
}
- if (commit.getVersion() == latestVersion && commit.getGeneration() == latestGeneration) {
+ if (!force && commit.getVersion() == latestVersion && commit.getGeneration() == latestGeneration) {
//master and slave are already in sync just return
LOG.info("Slave in sync with master.");
successfulInstall = true;