Skip to content

Commit da53ef1

Browse files
author
Alena Prokharchyk
committed
ApiServer: fixed non primitive Long "snapshotLimit" comparsion
1 parent 62ad6c4 commit da53ef1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/api/ApiServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void init() {
208208
String strSnapshotLimit = configs.get(Config.ConcurrentSnapshotsThresholdPerHost.key());
209209
if (strSnapshotLimit != null) {
210210
Long snapshotLimit = NumbersUtil.parseLong(strSnapshotLimit, 1L);
211-
if (snapshotLimit <= 0) {
211+
if (snapshotLimit.longValue() <= 0) {
212212
s_logger.debug("Global config parameter " + Config.ConcurrentSnapshotsThresholdPerHost.toString()
213213
+ " is less or equal 0; defaulting to unlimited");
214214
} else {

0 commit comments

Comments
 (0)