Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@ protected void updateAllServerList(List<T> ls) {
// other threads might be doing this - in which case, we pass
if (serverListUpdateInProgress.compareAndSet(false, true)) {
try {
for (T s : ls) {
s.setAlive(true); // set so that clients can start using these
// servers right away instead
// of having to wait out the ping cycle.
// in case of querying down node when setting all new nodes alive
boolean[] results = super.pingStrategy.pingServers(ping, ls.toArray(new Server[ls.size()]));
for(int i = 0; i < ls.size(); i++) {
ls.get(i).setAlive(results[i]);
}
setServersList(ls);
super.forceQuickPing();
Expand Down