bug 7391 : Preventing Secondary Storage stats to be deleted on each restart of management server. Not sure why we delete all the stats on each restart of management server.

This commit is contained in:
nit 2010-12-16 12:25:16 +05:30
parent d96c7953b1
commit af0d6aa568
1 changed files with 3 additions and 1 deletions

View File

@ -1819,7 +1819,9 @@ public class AgentManagerImpl implements AgentManager, HandlerFactory {
// remove old entries, we'll recalculate them anyway
if ((capacities != null) && !capacities.isEmpty()) {
for (CapacityVO capacity : capacities) {
_capacityDao.remove(capacity.getId());
if ( capacity.getCapacityType() != CapacityVO.CAPACITY_TYPE_SECONDARY_STORAGE){ // Not allowing secondary storage to be deleted Bug# 7391
_capacityDao.remove(capacity.getId());
}
}
}