You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ni...@apache.org on 2014/08/20 05:12:48 UTC

[6/6] git commit: Removing unused variables and cleaning up the code.

Removing unused variables and cleaning up the code.


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

Branch: refs/heads/master
Commit: acec5488d30e59583ccce714a303a493915ced0b
Parents: ec15171
Author: Nirmal Fernando <ni...@gmail.com>
Authored: Wed Aug 20 08:42:26 2014 +0530
Committer: Nirmal Fernando <ni...@gmail.com>
Committed: Wed Aug 20 08:42:26 2014 +0530

----------------------------------------------------------------------
 .../message/receiver/health/AutoscalerHealthStatEventReceiver.java | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/acec5488/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
index 2bcfb52..59b00b1 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/message/receiver/health/AutoscalerHealthStatEventReceiver.java
@@ -629,7 +629,6 @@ public class AutoscalerHealthStatEventReceiver implements Runnable {
             }
         	return null;
         }
-        String clusterId = member.getClusterId();
         AbstractMonitor monitor = AutoscalerContext.getInstance().getMonitor(member.getClusterId());
         if(null == monitor){
 
@@ -730,7 +729,6 @@ public class AutoscalerHealthStatEventReceiver implements Runnable {
             }
             // start a new member in the same Partition
             String partitionId = monitor.getPartitionOfMember(memberId);
-            Partition partition = monitor.getDeploymentPolicy().getPartitionById(partitionId);
             PartitionContext partitionCtxt = nwPartitionCtxt.getPartitionCtxt(partitionId);
 
             if(!partitionCtxt.activeMemberExist(memberId)){