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.

testing skip memory management

chrislu6c908352cbc0
diff --git a/weed/util/mem/slot_pool.go b/weed/util/mem/slot_pool.go
index e6680d3cba..a871188b5b 100644
--- a/weed/util/mem/slot_pool.go
+++ b/weed/util/mem/slot_pool.go
@@ -35,10 +35,12 @@ func getSlotPool(size int) *sync.Pool {
}
func Allocate(size int) []byte {
+ return make([]byte, size)
slab := *getSlotPool(size).Get().(*[]byte)
return slab[:size]
}
func Free(buf []byte) {
+ return
getSlotPool(cap(buf)).Put(&buf)
}