From ded5e084ea324c074e61bc74bba0bfaeb2af88d7 Mon Sep 17 00:00:00 2001 From: chrislu Date: Tue, 27 Aug 2024 09:03:11 -0700 Subject: [PATCH] ensure none zero lastGrowCount --- weed/topology/volume_layout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index e2a360165..3fab74843 100644 --- a/weed/topology/volume_layout.go +++ b/weed/topology/volume_layout.go @@ -342,7 +342,7 @@ func (vl *VolumeLayout) DoneGrowRequest() { } func (vl *VolumeLayout) SetLastGrowCount(count uint32) { - if vl.lastGrowCount.Load() != count { + if vl.lastGrowCount.Load() != count && count != 0 { vl.lastGrowCount.Store(count) } }