mirror of https://github.com/apache/cassandra
[CASSANDRA-20736] Remove unnecessary check on epoch
This commit is contained in:
parent
e2e6dd1dac
commit
b61340c7f6
|
|
@ -237,9 +237,7 @@ public class ClusterMetadata
|
|||
return fullCMSMembers().contains(endpoint);
|
||||
|
||||
// special case to handle initialization of the CMS for the first time
|
||||
return epoch.isEqualOrBefore(Epoch.FIRST) && cmsDataPlacement.reads.byEndpoint()
|
||||
.keySet()
|
||||
.contains(endpoint);
|
||||
return cmsDataPlacement.reads.byEndpoint().keySet().contains(endpoint);
|
||||
}
|
||||
|
||||
public Set<InetAddressAndPort> fullCMSMembers()
|
||||
|
|
|
|||
Loading…
Reference in New Issue