mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 15:00:43 +02:00
ensure none zero lastGrowCount
This commit is contained in:
1 parent
0cf2c15828
commit
ded5e084ea
1 file changed
+1
-1
@@ -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