mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-23 04:39:04 +00:00
cddc003c16
madmin-go v3.0.109 `BucketTarget` (bucket-targets.go) tags the limit `json:"bandwidthlimit,omitempty"`, not `bandwidth`, so the previous rename still left mc decoding a zero bandwidth limit for every nonzero target. Emit the exact tag in remote_target_admin_json, and add the same `bandwidthlimit` alias on the ecstore `BucketTarget` reader so a MinIO-written bucket-targets.json keeps its limit on migration (the legacy `bandwidth` alias stays for compatibility). The persisted snake_case wire key and the inbound RemoteTargetRequest aliases are unchanged. Cover it with a madmin-shaped decode regression: the admin response is decoded through a mirror of the v3.0.109 json tags and must yield the nonzero bandwidth limit plus the other renamed fields.