mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove unused parameter pulse
This commit is contained in:
parent
5eac4f043a
commit
8f0e2f31af
|
@ -12,17 +12,15 @@ type VolumeLayout struct {
|
||||||
repType storage.ReplicationType
|
repType storage.ReplicationType
|
||||||
vid2location map[storage.VolumeId]*VolumeLocationList
|
vid2location map[storage.VolumeId]*VolumeLocationList
|
||||||
writables []storage.VolumeId // transient array of writable volume id
|
writables []storage.VolumeId // transient array of writable volume id
|
||||||
pulse int64
|
|
||||||
volumeSizeLimit uint64
|
volumeSizeLimit uint64
|
||||||
accessLock sync.Mutex
|
accessLock sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewVolumeLayout(repType storage.ReplicationType, volumeSizeLimit uint64, pulse int64) *VolumeLayout {
|
func NewVolumeLayout(repType storage.ReplicationType, volumeSizeLimit uint64) *VolumeLayout {
|
||||||
return &VolumeLayout{
|
return &VolumeLayout{
|
||||||
repType: repType,
|
repType: repType,
|
||||||
vid2location: make(map[storage.VolumeId]*VolumeLocationList),
|
vid2location: make(map[storage.VolumeId]*VolumeLocationList),
|
||||||
writables: *new([]storage.VolumeId),
|
writables: *new([]storage.VolumeId),
|
||||||
pulse: pulse,
|
|
||||||
volumeSizeLimit: volumeSizeLimit,
|
volumeSizeLimit: volumeSizeLimit,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -164,7 +162,7 @@ func (vl *VolumeLayout) SetVolumeCapacityFull(vid storage.VolumeId) bool {
|
||||||
return vl.removeFromWritable(vid)
|
return vl.removeFromWritable(vid)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vl *VolumeLayout) ToMap() interface{} {
|
func (vl *VolumeLayout) ToMap() map[string]interface{} {
|
||||||
m := make(map[string]interface{})
|
m := make(map[string]interface{})
|
||||||
m["replication"] = vl.repType.String()
|
m["replication"] = vl.repType.String()
|
||||||
m["writables"] = vl.writables
|
m["writables"] = vl.writables
|
||||||
|
|
Loading…
Reference in a new issue