mirror of
https://github.com/apache/lucene.git
synced 2025-02-23 02:35:02 +00:00
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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user