mirror of https://github.com/apache/lucene.git
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:
parent
ccee2bca8f
commit
21e0d0c909
|
@ -288,7 +288,7 @@ public class SnapPuller {
|
||||||
return true;
|
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
|
//master and slave are already in sync just return
|
||||||
LOG.info("Slave in sync with master.");
|
LOG.info("Slave in sync with master.");
|
||||||
successfulInstall = true;
|
successfulInstall = true;
|
||||||
|
|
Loading…
Reference in New Issue