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.

Revert "testing skip memory management"

chrisluda7f13e73e11
diff --git a/weed/util/mem/slot_pool.go b/weed/util/mem/slot_pool.go
index a871188b5b..e6680d3cba 100644
--- a/weed/util/mem/slot_pool.go
+++ b/weed/util/mem/slot_pool.go
@@ -35,12 +35,10 @@ 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)
}