Repository: cloudstack
Updated Branches:
  refs/heads/master 221c118b4 -> 64b9ca0a3


Fixed a coverity reported concurrency issue

Signed-off-by: Santhosh Edukulla <santhosh.eduku...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/64b9ca0a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/64b9ca0a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/64b9ca0a

Branch: refs/heads/master
Commit: 64b9ca0a35f18437741f83f8b06665af1331f290
Parents: 221c118
Author: Santhosh Edukulla <santhosh.eduku...@gmail.com>
Authored: Tue Aug 5 17:14:05 2014 +0530
Committer: Santhosh Edukulla <santhosh.eduku...@gmail.com>
Committed: Tue Aug 5 17:16:09 2014 +0530

----------------------------------------------------------------------
 .../server/src/com/cloud/consoleproxy/ConsoleProxy.java          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/64b9ca0a/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java
----------------------------------------------------------------------
diff --git 
a/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java 
b/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java
index 3b3b82f..863f0bf 100644
--- a/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java
+++ b/services/console-proxy/server/src/com/cloud/consoleproxy/ConsoleProxy.java
@@ -504,7 +504,9 @@ public class ConsoleProxy {
     }
 
     public static ConsoleProxyClientStatsCollector getStatsCollector() {
-        return new ConsoleProxyClientStatsCollector(connectionMap);
+        synchronized (connectionMap) {
+            return new ConsoleProxyClientStatsCollector(connectionMap);
+        }
     }
 
     public static void authenticationExternally(ConsoleProxyClientParam param) 
throws AuthenticationException {

Reply via email to