mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 12:26:37 +00:00
fbecd38e2d
The admin list-remote-targets response serialized five fields under the persisted snake_case keys (bandwidth_limit, storage_class, reset_id, deployment_id, credentials.session_token), which madmin/mc decode to zero values, blanking the bandwidth and reset-id columns of mc replicate ls. Rename them to the madmin JSON tags (bandwidth, storageclass, resetID, deploymentID, sessionToken) in remote_target_admin_json only, following the existing Go-duration overwrite precedent there. Symmetrically, BucketTarget deserialization only aliased bandwidth, so a MinIO-written bucket-targets.json silently dropped the other four fields to defaults on migration; add serde aliases for them. Aliases and the response-layer rename leave the persisted bucket-targets.json and the msgpack struct-map wire format untouched, pinned by new tests. Refs rustfs/backlog#1951, spec rustfs/backlog#1946.