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:
parent
f9a93ec9df
commit
a041afacff
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue