forked from willemt/raft
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DAOS-2181 raft: Avoid passing raft_node_t pointers around
Passing around pointers to raft_node_t objects and referencing them all over the code results in errors and crashes due to dangling pointers when nodes are removed. It is safer to use the node ID to look up a node from the server's node list. In the future, it would be ideal to introduce reference counting and thread safety to Raft as a whole and the node list in particular. Signed-off-by: Omkar Kulkarni <[email protected]>
- Loading branch information
Omkar Kulkarni
committed
Mar 7, 2019
1 parent
b9c7290
commit 598d8ea
Showing
5 changed files
with
56 additions
and
50 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