You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(nodedb): replace ClusterVersionState with topology-derived ClusterVersionView
Split rolling_upgrade.rs into a rolling_upgrade/ submodule (mod.rs,
versions.rs, view.rs). Replace the mutable ClusterVersionState — which
maintained a shadow map of node versions under a Mutex — with
ClusterVersionView, computed on demand from the live topology snapshot.
Stamp wire_version on NodeInfo in nodedb-cluster so every node carries
its version in the topology. Add CLUSTER_WIRE_FORMAT_VERSION constant to
topology.rs as the single source of truth. Propagate wire_version through
JoinRequest and JoinNodeInfo wire types so peers learn each other's
version in one RPC round-trip.
Remove cluster_version_state field from SharedState and its Mutex
initialisation from both single-node and cluster init paths. Update all
call sites (metadata_proposer, drain_propose, health check, metadata
applier, start_raft, handle_rpc, bootstrap) to call
shared.cluster_version_view() instead of locking the old field.
0 commit comments