diff options
| author | chrislu <chris.lu@gmail.com> | 2022-08-29 13:24:12 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-08-29 13:24:12 -0700 |
| commit | 570b4885722ae08c92651d6f38918429ac39bd22 (patch) | |
| tree | 9f1b2701959c80416510289fa9476c0b1dfa76a8 | |
| parent | 4966a3abc75524a28a91359b65ab3b9ca3e2bdf4 (diff) | |
| download | seaweedfs-570b4885722ae08c92651d6f38918429ac39bd22.tar.xz seaweedfs-570b4885722ae08c92651d6f38918429ac39bd22.zip | |
ensure memory alignment on different CPUs
| -rw-r--r-- | weed/topology/volume_layout.go | 4 |
1 files 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 { |
