Browse Source

remove unused parameter pulse

pull/2/head
Chris Lu 11 years ago
parent
commit
8f0e2f31af
  1. 6
      go/topology/volume_layout.go

6
go/topology/volume_layout.go

@ -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…
Cancel
Save