fix bug with out of order events on broker

This commit is contained in:
fjy 2013-05-31 15:50:53 -07:00
parent 2138f9fdf2
commit 7dcbea464f
1 changed files with 1 additions and 2 deletions

View File

@ -145,11 +145,10 @@ public class BrokerServerView implements TimelineServerView
private QueryableDruidServer removeServer(DruidServer server) private QueryableDruidServer removeServer(DruidServer server)
{ {
QueryableDruidServer retVal = clients.remove(server.getName());
for (DataSegment segment : server.getSegments().values()) { for (DataSegment segment : server.getSegments().values()) {
serverRemovedSegment(server, segment); serverRemovedSegment(server, segment);
} }
return retVal; return clients.remove(server.getName());
} }
private void serverAddedSegment(final DruidServer server, final DataSegment segment) private void serverAddedSegment(final DruidServer server, final DataSegment segment)