HBASE-10294 Some synchronization on ServerManager#onlineServers can be removed

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1557636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2014-01-13 01:12:54 +00:00
parent f9a93ec9df
commit a041afacff
1 changed files with 1 additions and 3 deletions

View File

@ -421,10 +421,8 @@ public class ServerManager {
*/
public Map<ServerName, ServerLoad> getOnlineServers() {
// Presumption is that iterating the returned Map is OK.
synchronized (this.onlineServers) {
return Collections.unmodifiableMap(this.onlineServers);
}
}
public DeadServer getDeadServers() {