Files
seaweedfs/telemetry/proto/floor.go
T
Chris Lu eb9f54cebb telemetry: type MinDiskBytes so a 32-bit int cannot hold it by accident (#11142)
As an untyped constant it became int when passed to Infof, which
overflows on linux/386 and failed the 32-bit vet job. Every field it is
compared against is already uint64.

Claude-Session: https://claude.ai/code/session_015rYAmF8hV9yypb9yvy4A1z
2026-09-03 13:54:25 -07:00

8 lines
342 B
Go

package proto
// MinDiskBytes is what a cluster must store before its master reports it and
// the server keeps the report: fresh `weed server` runs, CI jobs and throwaway
// containers each mint their own cluster id, and they were most of the counted
// clusters while holding almost none of the bytes.
const MinDiskBytes uint64 = 10 << 30