Browse Source

ensure memory alignment on different CPUs

pull/3548/head
chrislu 2 years ago
parent
commit
570b488572
  1. 4
      weed/topology/volume_layout.go

4
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 // mapping from volume to its locations, inverted from server to volume
type VolumeLayout struct { type VolumeLayout struct {
growRequestCount int32
growRequestTime time.Time
rp *super_block.ReplicaPlacement rp *super_block.ReplicaPlacement
ttl *needle.TTL ttl *needle.TTL
diskType types.DiskType diskType types.DiskType
@ -115,8 +117,6 @@ type VolumeLayout struct {
volumeSizeLimit uint64 volumeSizeLimit uint64
replicationAsMin bool replicationAsMin bool
accessLock sync.RWMutex accessLock sync.RWMutex
growRequestCount int32
growRequestTime time.Time
} }
type VolumeLayoutStats struct { type VolumeLayoutStats struct {

Loading…
Cancel
Save