Browse Source
fix: propagate NVMe fields through replica creation, heartbeat, and promotion
fix: propagate NVMe fields through replica creation, heartbeat, and promotion
ReplicaInfo now carries NvmeAddr/NQN. Fields are populated during replica allocation (tryCreateOneReplica), updated from replica heartbeats, and copied in PromoteBestReplica. This ensures master lookup returns correct NVMe endpoints immediately after failover, without waiting for the first post-promotion heartbeat. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>feature/sw-block
3 changed files with 96 additions and 0 deletions
-
15weed/server/master_block_registry.go
-
2weed/server/master_grpc_server_block.go
-
79weed/server/master_grpc_server_block_test.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue