You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s_logger.debug(mine.getName() + " is checking template with id " + templateMapping.getTemplateId() + " for deletion from pool with id " + templateMapping.getPoolId());
@@ -130,6 +138,7 @@ private void markForGcAsNeeded(VMTemplateStoragePoolVO templateMapping, long zon
130
138
// VolumeOrchestrator or UserVmManagerImpl depending on version
131
139
if (VolumeOrchestrator.UserVmCloneType.linked.equals(VolumeOrchestrator.UserVmCloneType.valueOf(cloneSetting.getCloneType()))) {
132
140
used = true;
141
+
break;
133
142
}
134
143
} catch (Exceptione) {
135
144
s_logger.error("failed to retrieve vm clone setting for vm " + vm.toString());
@@ -139,13 +148,11 @@ private void markForGcAsNeeded(VMTemplateStoragePoolVO templateMapping, long zon
139
148
}
140
149
}
141
150
if (!used) {
142
-
if(s_logger.isInfoEnabled()) {
143
-
s_logger.info(mine.getName() + " is marking template with id " + templateMapping.getTemplateId() + " for gc in pool with id " + templateMapping.getPoolId());
144
-
}
151
+
s_logger.info(mine.getName() + " is marking template with id " + templateMapping.getTemplateId() + " for gc in pool with id " + templateMapping.getPoolId());
0 commit comments