ensure none zero lastGrowCount
This commit is contained in:
@@ -342,7 +342,7 @@ func (vl *VolumeLayout) DoneGrowRequest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (vl *VolumeLayout) SetLastGrowCount(count uint32) {
|
func (vl *VolumeLayout) SetLastGrowCount(count uint32) {
|
||||||
if vl.lastGrowCount.Load() != count {
|
if vl.lastGrowCount.Load() != count && count != 0 {
|
||||||
vl.lastGrowCount.Store(count)
|
vl.lastGrowCount.Store(count)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user