ensure none zero lastGrowCount

This commit is contained in:
chrislu 2024-08-27 09:03:11 -07:00
parent 0cf2c15828
commit ded5e084ea

View File

@ -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)
} }
} }