hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1557636 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
Date Mon, 13 Jan 2014 01:12:54 GMT
Author: tedyu
Date: Mon Jan 13 01:12:54 2014
New Revision: 1557636

URL: http://svn.apache.org/r1557636
Log:
HBASE-10294 Some synchronization on ServerManager#onlineServers can be removed


Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java?rev=1557636&r1=1557635&r2=1557636&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
(original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
Mon Jan 13 01:12:54 2014
@@ -421,9 +421,7 @@ 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);
-    }
+    return Collections.unmodifiableMap(this.onlineServers);
   }
 
 



Mime
View raw message