mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-04-05 20:52:50 +08:00
ensure memory alignment on different CPUs
This commit is contained in:
parent
4966a3abc7
commit
570b488572
@ -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…
Reference in New Issue
Block a user