Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

remove unused parameter pulse

Chris Lu8f0e2f31afad
diff --git a/go/topology/volume_layout.go b/go/topology/volume_layout.go
index 678035f524..8877d7ccf1 100644
--- a/go/topology/volume_layout.go
+++ b/go/topology/volume_layout.go
@@ -12,17 +12,15 @@ type VolumeLayout struct {
repType storage.ReplicationType
vid2location map[storage.VolumeId]*VolumeLocationList
writables []storage.VolumeId // transient array of writable volume id
- pulse int64
volumeSizeLimit uint64
accessLock sync.Mutex
}
-func NewVolumeLayout(repType storage.ReplicationType, volumeSizeLimit uint64, pulse int64) *VolumeLayout {
+func NewVolumeLayout(repType storage.ReplicationType, volumeSizeLimit uint64) *VolumeLayout {
return &VolumeLayout{
repType: repType,
vid2location: make(map[storage.VolumeId]*VolumeLocationList),
writables: *new([]storage.VolumeId),
- pulse: pulse,
volumeSizeLimit: volumeSizeLimit,
}
}
@@ -164,7 +162,7 @@ func (vl *VolumeLayout) SetVolumeCapacityFull(vid storage.VolumeId) bool {
return vl.removeFromWritable(vid)
}
-func (vl *VolumeLayout) ToMap() interface{} {
+func (vl *VolumeLayout) ToMap() map[string]interface{} {
m := make(map[string]interface{})
m["replication"] = vl.repType.String()
m["writables"] = vl.writables