You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ts...@apache.org on 2013/07/23 16:56:05 UTC
git commit: updated refs/heads/master to a7084b2
Updated Branches:
refs/heads/master 7e8722137 -> a7084b2da
CLOUDSTACK-3727: Resource Count calculation happens for deleted accounts on restart of managment server.
Signed-off-by: Prasanna Santhanam <ts...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/a7084b2d
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/a7084b2d
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/a7084b2d
Branch: refs/heads/master
Commit: a7084b2dac594a5851e32be692863fb9f7b23d9d
Parents: 7e87221
Author: Sanjay Tripathi <sa...@citrix.com>
Authored: Tue Jul 23 18:15:07 2013 +0530
Committer: Prasanna Santhanam <ts...@apache.org>
Committed: Tue Jul 23 20:25:15 2013 +0530
----------------------------------------------------------------------
server/src/com/cloud/server/ConfigurationServerImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a7084b2d/server/src/com/cloud/server/ConfigurationServerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java
index 9a9b145..febb6d2 100755
--- a/server/src/com/cloud/server/ConfigurationServerImpl.java
+++ b/server/src/com/cloud/server/ConfigurationServerImpl.java
@@ -1299,8 +1299,8 @@ public class ConfigurationServerImpl extends ManagerBase implements Configuratio
@DB
public void updateResourceCount() {
ResourceType[] resourceTypes = Resource.ResourceType.values();
- List<AccountVO> accounts = _accountDao.listAllIncludingRemoved();
- List<DomainVO> domains = _domainDao.listAllIncludingRemoved();
+ List<AccountVO> accounts = _accountDao.listAll();
+ List<DomainVO> domains = _domainDao.listAll();
List<ResourceCountVO> domainResourceCount = _resourceCountDao.listResourceCountByOwnerType(ResourceOwnerType.Domain);
List<ResourceCountVO> accountResourceCount = _resourceCountDao.listResourceCountByOwnerType(ResourceOwnerType.Account);