Repository: stratos Updated Branches: refs/heads/master 71fab2b44 -> e9fa2b831
adding missing lock Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/e9fa2b83 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/e9fa2b83 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/e9fa2b83 Branch: refs/heads/master Commit: e9fa2b8313119a53d2e1ee995a4d7ac8373f4db7 Parents: 71fab2b Author: reka <[email protected]> Authored: Thu Dec 4 00:28:57 2014 +0530 Committer: reka <[email protected]> Committed: Thu Dec 4 00:28:57 2014 +0530 ---------------------------------------------------------------------- .../apache/stratos/autoscaler/context/cluster/VMClusterContext.java | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/e9fa2b83/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/VMClusterContext.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/VMClusterContext.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/VMClusterContext.java index 47bd485..bd7c2b8 100644 --- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/VMClusterContext.java +++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/context/cluster/VMClusterContext.java @@ -214,6 +214,7 @@ public class VMClusterContext extends AbstractClusterContext { networkPartition.getPartitionAlgo(), networkPartition.getChildLevelPartitions(), 2, networkPartitionId); + ApplicationHolder.acquireReadLock(); try { Application application = ApplicationHolder.getApplications(). getApplication(cluster.getAppId());
