mirror of https://github.com/apache/cloudstack.git
server: create DB entry for storage pool capacity when create storage pool (#4805)
* server: create DB entry for storage pool capacity when create storage pool
* Revert "server: create DB entry for storage pool capacity when create storage pool"
This reverts commit e790167bfe.
* server: create DB entry for storage pool capacity when create zone-wide storage pools
This commit is contained in:
parent
caa55a5742
commit
b8884efa7f
|
|
@ -173,6 +173,7 @@ public class PrimaryDataStoreHelper {
|
|||
|
||||
public DataStore attachZone(DataStore store) {
|
||||
StoragePoolVO pool = this.dataStoreDao.findById(store.getId());
|
||||
storageMgr.createCapacityEntry(pool.getId());
|
||||
pool.setScope(ScopeType.ZONE);
|
||||
pool.setStatus(StoragePoolStatus.Up);
|
||||
this.dataStoreDao.update(pool.getId(), pool);
|
||||
|
|
@ -181,6 +182,7 @@ public class PrimaryDataStoreHelper {
|
|||
|
||||
public DataStore attachZone(DataStore store, HypervisorType hypervisor) {
|
||||
StoragePoolVO pool = this.dataStoreDao.findById(store.getId());
|
||||
storageMgr.createCapacityEntry(pool.getId());
|
||||
pool.setScope(ScopeType.ZONE);
|
||||
pool.setHypervisor(hypervisor);
|
||||
pool.setStatus(StoragePoolStatus.Up);
|
||||
|
|
|
|||
Loading…
Reference in New Issue