You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(t) = testing branch. While working on #2384 and revising mocking of such things as pool free space, we see a redundant re-calculation of the same in our PUT (remove) pool command when the exact same calculation has already been made via an earlier Pool object @Property instantiation still held.
This is obviously redundant. And given the second in-transaction re-use/repeat-call is the only other user of fs.btrfs.pool_usage() we can improve/ease our traceability and mocking by centralising this methods use.
The text was updated successfully, but these errors were encountered:
Remove a redundant re-calculation of pool.free in PUT (remove) pool command when the
exact same calculation has already been made via an earlier and current Pool object
@Property instantiation.
(t) = testing branch. While working on #2384 and revising mocking of such things as pool free space, we see a redundant re-calculation of the same in our PUT (remove) pool command when the exact same calculation has already been made via an earlier Pool object @Property instantiation still held.
Pool "free" property definition:
rockstor-core/src/rockstor/storageadmin/models/pool.py
Lines 97 to 104 in afa3e41
storageadmin.views.pool.PoolDetailView -put()
rockstor-core/src/rockstor/storageadmin/views/pool.py
Lines 700 to 705 in afa3e41
This is obviously redundant. And given the second in-transaction re-use/repeat-call is the only other user of fs.btrfs.pool_usage() we can improve/ease our traceability and mocking by centralising this methods use.
The text was updated successfully, but these errors were encountered: