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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-01-27 04:12:20 +00:00
parent ccee2bca8f
commit 21e0d0c909
1 changed files with 1 additions and 1 deletions

View File

@ -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;