blob: f3d1ac394f9d8a6fe1349030ff36eb2c52d9c55d [file] [log] [blame]
#
# Cheat during the leader election for a counter mutation and favour node 2, 127.0.0.2
#
# Note that this happens only if the node is known to be available.
#
RULE election counter leader cheat
CLASS org.apache.cassandra.service.StorageProxy
METHOD findSuitableEndpoint
AT EXIT
BIND isthere:boolean = $localEndpoints.contains(java.net.InetAddress.getByName("127.0.0.2"));
if isthere
DO
return java.net.InetAddress.getByName("127.0.0.2");
ENDRULE