cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject git commit: updated refs/heads/master to 63109a9
Date Thu, 09 Oct 2014 04:59:38 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 59e1e9bbd -> 63109a97b


CLOUDSTACK-2625, CLOUDSTACK-3401: Usage records are ordered by start_date which is not unique.
While listing large datasets or when page size is small this will result in duplicates. Order
records by id instead


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

Branch: refs/heads/master
Commit: 63109a97b1119cd306858cd4068e46859acc8e83
Parents: 59e1e9b
Author: Kishan Kavala <kishan@apache.org>
Authored: Thu Oct 9 10:27:35 2014 +0530
Committer: Kishan Kavala <kishan@apache.org>
Committed: Thu Oct 9 10:27:49 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/usage/UsageServiceImpl.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/63109a97/server/src/com/cloud/usage/UsageServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/usage/UsageServiceImpl.java b/server/src/com/cloud/usage/UsageServiceImpl.java
index db0d047..f81415b 100755
--- a/server/src/com/cloud/usage/UsageServiceImpl.java
+++ b/server/src/com/cloud/usage/UsageServiceImpl.java
@@ -232,7 +232,7 @@ public class UsageServiceImpl extends ManagerBase implements UsageService,
Manag
                 ", using pageSize: " + cmd.getPageSizeVal() + " and startIndex: " + cmd.getStartIndex());
         }
 
-        Filter usageFilter = new Filter(UsageVO.class, "startDate", false, cmd.getStartIndex(),
cmd.getPageSizeVal());
+        Filter usageFilter = new Filter(UsageVO.class, "id", true, cmd.getStartIndex(), cmd.getPageSizeVal());
 
         SearchCriteria<UsageVO> sc = _usageDao.createSearchCriteria();
 


Mime
View raw message