Commit 6f64dae
Eugenio Grosso
flasharray: drop array-capacity cache per review
winterhazel noted the array-total-capacity cache is unnecessary: getManagedStorageStats() is polled only every 60s by default, so the extra GET /arrays?space=true per poll (only when a pod has no quota) is negligible and not worth the static shared-state cache. Remove the cache and its helper class; getArrayTotalCapacity() now does a direct lookup.
Signed-off-by: Eugenio Grosso <eugenio.grosso@gmail.com>1 parent dca606b commit 6f64dae
1 file changed
Lines changed: 1 addition & 33 deletions
File tree
- plugins/storage/volume/flasharray/src/main/java/org/apache/cloudstack/storage/datastore/adapter/flasharray
Lines changed: 1 addition & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | 29 | | |
32 | 30 | | |
33 | 31 | | |
| |||
478 | 476 | | |
479 | 477 | | |
480 | 478 | | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | 479 | | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | 480 | | |
510 | 481 | | |
511 | 482 | | |
512 | 483 | | |
513 | 484 | | |
514 | 485 | | |
515 | 486 | | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
| 487 | + | |
520 | 488 | | |
521 | 489 | | |
522 | 490 | | |
| |||
0 commit comments