mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-12 23:51:23 +00:00
bf04ddcae8
When seaweedfs/raft elects a new leader, transfer hashicorp raft leadership to the same node. This ensures both raft systems always have the same leader, allowing dual-write to work correctly. Changes: - Add SyncHashicorpRaftLeadership() to transfer hashicorp raft leadership - Call sync on seaweedfs/raft leader change event - Only the current hashicorp raft leader can initiate transfer