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.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
remove logs
chrislucb476a53ffe8
diff --git a/weed/util/mem/slot_pool.go b/weed/util/mem/slot_pool.goindex 16b497af58..70f2525b3e 100644--- a/weed/util/mem/slot_pool.go+++ b/weed/util/mem/slot_pool.go@@ -1,9 +1,7 @@package memimport (- "github.com/seaweedfs/seaweedfs/weed/glog""sync"- "sync/atomic")var pools []*sync.Pool@@ -41,13 +39,8 @@ func getSlotPool(size int) (*sync.Pool, bool) {return pools[index], true}-var total int64-func Allocate(size int) []byte {if pool, found := getSlotPool(size); found {- newVal := atomic.AddInt64(&total, 1)- glog.V(4).Infof("++> %d", newVal)-slab := *pool.Get().(*[]byte)return slab[:size]}@@ -56,8 +49,6 @@ func Allocate(size int) []byte {func Free(buf []byte) {if pool, found := getSlotPool(cap(buf)); found {- newVal := atomic.AddInt64(&total, -1)- glog.V(4).Infof("--> %d", newVal)pool.Put(&buf)}}diff --git a/weed/wdclient/vid_map.go b/weed/wdclient/vid_map.goindex 255bac2798..89542b25b7 100644--- a/weed/wdclient/vid_map.go+++ b/weed/wdclient/vid_map.go@@ -128,7 +128,7 @@ func (vc *vidMap) GetVidLocations(vid string) (locations []Location, err error)}func (vc *vidMap) GetLocations(vid uint32) (locations []Location, found bool) {- glog.V(4).Infof("~ lookup volume id %d: %+v ec:%+v", vid, vc.vid2Locations, vc.ecVid2Locations)+ // glog.V(4).Infof("~ lookup volume id %d: %+v ec:%+v", vid, vc.vid2Locations, vc.ecVid2Locations)locations, found = vc.getLocations(vid)if found && len(locations) > 0 {return locations, found