From 570b4885722ae08c92651d6f38918429ac39bd22 Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 29 Aug 2022 13:24:12 -0700 Subject: [PATCH] ensure memory alignment on different CPUs --- weed/topology/volume_layout.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/topology/volume_layout.go b/weed/topology/volume_layout.go index 760cecbdd..377122cae 100644 --- a/weed/topology/volume_layout.go +++ b/weed/topology/volume_layout.go @@ -104,6 +104,8 @@ func (v *volumesBinaryState) copyState(list *VolumeLocationList) copyState { // mapping from volume to its locations, inverted from server to volume type VolumeLayout struct { + growRequestCount int32 + growRequestTime time.Time rp *super_block.ReplicaPlacement ttl *needle.TTL diskType types.DiskType @@ -115,8 +117,6 @@ type VolumeLayout struct { volumeSizeLimit uint64 replicationAsMin bool accessLock sync.RWMutex - growRequestCount int32 - growRequestTime time.Time } type VolumeLayoutStats struct {