Updated Branches: refs/heads/master 800cd391d -> da53ef1ae
ApiServer: fixed non primitive Long "snapshotLimit" comparsion Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/da53ef1a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/da53ef1a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/da53ef1a Branch: refs/heads/master Commit: da53ef1aed11ae352eaf76b94cd3acc59089fc93 Parents: 62ad6c4 Author: Alena Prokharchyk <[email protected]> Authored: Thu May 30 15:04:19 2013 -0700 Committer: Alena Prokharchyk <[email protected]> Committed: Thu May 30 15:21:31 2013 -0700 ---------------------------------------------------------------------- server/src/com/cloud/api/ApiServer.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/da53ef1a/server/src/com/cloud/api/ApiServer.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/ApiServer.java b/server/src/com/cloud/api/ApiServer.java index 08468c4..9bad32c 100755 --- a/server/src/com/cloud/api/ApiServer.java +++ b/server/src/com/cloud/api/ApiServer.java @@ -208,7 +208,7 @@ public class ApiServer extends ManagerBase implements HttpRequestHandler, ApiSer String strSnapshotLimit = configs.get(Config.ConcurrentSnapshotsThresholdPerHost.key()); if (strSnapshotLimit != null) { Long snapshotLimit = NumbersUtil.parseLong(strSnapshotLimit, 1L); - if (snapshotLimit <= 0) { + if (snapshotLimit.longValue() <= 0) { s_logger.debug("Global config parameter " + Config.ConcurrentSnapshotsThresholdPerHost.toString() + " is less or equal 0; defaulting to unlimited"); } else {
