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 2013/12/14 12:01:19 UTC

git commit: fixing partition persistence registry resource path

Updated Branches:
  refs/heads/master 9ce3d30bd -> a0a480fbb


fixing partition persistence registry resource path


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

Branch: refs/heads/master
Commit: a0a480fbb2f61016e9179aa26032e79325445206
Parents: 9ce3d30
Author: Nirmal Fernando <ni...@apache.org>
Authored: Sat Dec 14 16:30:58 2013 +0530
Committer: Nirmal Fernando <ni...@apache.org>
Committed: Sat Dec 14 16:30:58 2013 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/registry/RegistryManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/a0a480fb/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
index 230b7e3..7b05a4f 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/registry/RegistryManager.java
@@ -85,7 +85,7 @@ public class RegistryManager {
     }
 
     public void persistPartition(Partition partition) {
-        String resourcePath = AutoScalerConstants.AUTOSCALER_RESOURCE + AutoScalerConstants.PARTITION_RESOURCE + "/";
+        String resourcePath = AutoScalerConstants.AUTOSCALER_RESOURCE + AutoScalerConstants.PARTITION_RESOURCE + "/"+partition.getId();
         persist(partition, resourcePath);
         if(log.isDebugEnabled()) {
             log.debug(String.format("Partition written to registry: [id] %s [provider] %s [min] %d [max] %d",