diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2024-03-29 04:17:59 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-28 16:17:59 -0700 |
| commit | df40908e578fdf0d41044a5d521c961c95b0ab55 (patch) | |
| tree | f9cd011c3af87c615575430d0aa6cbc0ecc80f05 /weed/topology/volume_layout.go | |
| parent | 6aa804b368242f853b5258f20178eae8a5eda26f (diff) | |
| download | seaweedfs-df40908e578fdf0d41044a5d521c961c95b0ab55.tar.xz seaweedfs-df40908e578fdf0d41044a5d521c961c95b0ab55.zip | |
fix panic 5435 (#5436)
Diffstat (limited to 'weed/topology/volume_layout.go')
| -rw-r--r-- | weed/topology/volume_layout.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index 278978292..516d6a947 100644 --- a/weed/topology/volume_layout.go +++ b/weed/topology/volume_layout.go @@ -301,7 +301,7 @@ func (vl *VolumeLayout) PickForWrite(count uint64, option *VolumeGrowOption) (vi if float64(info.Size) > float64(vl.volumeSizeLimit)*option.Threshold() { shouldGrow = true } - return vid, count, locationList, shouldGrow, nil + return vid, count, locationList.Copy(), shouldGrow, nil } return 0, 0, nil, shouldGrow, errors.New("Strangely vid " + vid.String() + " is on no machine!") } |
