Enabled caching
This commit is contained in:
@@ -168,12 +168,15 @@ class Model_NODE extends ORMTSM {
|
||||
|
||||
// Return the volumes that this node uses
|
||||
// $dtype is BACKUP or ARCHIVE
|
||||
// @todo Cache this data
|
||||
public function volumes($dtype) {
|
||||
$volumes = array();
|
||||
|
||||
$v = array();
|
||||
foreach ($this->VOLUMEUSAGE->where('COPY_TYPE','=',$dtype)->order_by('STGPOOL_NAME,FILESPACE_NAME')->find_all() as $vol)
|
||||
$volumes[$vol->STGPOOL_NAME][] = $vol->VOLUME;
|
||||
if (! in_array($vol->VOLUME->VOLUME_NAME,$v)) {
|
||||
$volumes[$vol->STGPOOL_NAME][] = $vol->VOLUME;
|
||||
array_push($v,$vol->VOLUME->VOLUME_NAME);
|
||||
}
|
||||
|
||||
return $volumes;
|
||||
}
|
||||
|
Reference in New Issue
Block a user