mirror of https://github.com/apache/cassandra
Don't request migrations from 1.2+ nodes
This commit is contained in:
parent
ba06e4128b
commit
3346771a03
|
|
@ -70,6 +70,7 @@ public final class MessagingService implements MessagingServiceMBean
|
|||
public static final int VERSION_10 = 3;
|
||||
public static final int VERSION_11 = 4;
|
||||
public static final int VERSION_117 = 5;
|
||||
public static final int VERSION_12 = 6;
|
||||
|
||||
public static final int version_ = VERSION_117;
|
||||
|
||||
|
|
|
|||
|
|
@ -110,6 +110,10 @@ public class MigrationManager implements IEndpointStateChangeSubscriber
|
|||
if (Gossiper.instance.getVersion(endpoint) < MessagingService.VERSION_117)
|
||||
return;
|
||||
|
||||
// Don't request migrations from nodes with versions that are >= 1.2
|
||||
if (Gossiper.instance.getVersion(endpoint) >= MessagingService.VERSION_12)
|
||||
return;
|
||||
|
||||
if (Schema.instance.getVersion().equals(theirVersion))
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue