mirror of https://github.com/apache/cloudstack.git
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:
parent
d96c7953b1
commit
af0d6aa568
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue