-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call `Raft.trigger().transfer_leader(to)` to inform the raft node to transfer its leadership to Node `to`. This feature is enabled only when: the application uses `RaftNetworkV2` and implements the `RaftNetworkV2::transfer_leader()` methods. This method provides a default implementation that returns an `Unreachable`, and such an error will be just ignored. Application upgrading Openraft from older version does not need to modify any codes, unless TransferLeader is required. Upgrade tip: Implement `RaftNetworkV2::transfer_leader()` to send the `TransferLeaderRequest` to the target node. The target node that receives this request should then pass it to `Raft::transfer_leader()`.
- Loading branch information
1 parent
94c820c
commit eeeff6f
Showing
30 changed files
with
525 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.