mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-08 15:41:15 +02:00
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
This commit is contained in:
@@ -4,4 +4,4 @@ package proto
|
||||
// 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 = 10 << 30
|
||||
const MinDiskBytes uint64 = 10 << 30
|
||||
|
||||
Reference in New Issue
Block a user