Browse Source

ensure none zero lastGrowCount

pull/5955/head
chrislu 4 months ago
parent
commit
ded5e084ea
  1. 2
      weed/topology/volume_layout.go

2
weed/topology/volume_layout.go

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

Loading…
Cancel
Save