mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-20 03:13:53 +01:00
Reconstruct previously got nil for each missing shard and allocated a fresh 1MB buffer per chunk — thousands of allocations on a 1GB volume. klauspost/reedsolomon reuses cap when len==0, so handing it a 0-len slice with the existing capacity avoids the allocation while still signaling "missing".