simplify initClient gossip loop

patch by Adrian Nistor and jbellis for CASSANDRA-5662
This commit is contained in:
Jonathan Ellis 2013-06-19 16:30:02 -05:00
parent fc5044f591
commit 9ba0ff03e2
1 changed files with 3 additions and 5 deletions

View File

@ -395,16 +395,14 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
try
{
// sleep a while to allow gossip to warm up (the other nodes need to know about this one before they can reply).
boolean isUp = false;
while (!isUp)
outer:
while (true)
{
Thread.sleep(1000);
for (InetAddress address : Gossiper.instance.getLiveMembers())
{
if (!Gossiper.instance.isFatClient(address))
{
isUp = true;
}
break outer;
}
}