Commit 7e4824c
committed
Fix Volume size calculation
If Last brick in a subvolume was down then it resets the
subvol size to zero. This patch fixes the issue by checking the
size > 0.
Signed-off-by: Aravinda Vishwanathapura <aravinda@kadalu.io>1 parent 3c99381 commit 7e4824c
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
0 commit comments