forked from daos-stack/raft
-
Notifications
You must be signed in to change notification settings - Fork 0
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 (daos-stack#21
) 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
Showing
4 changed files
with
58 additions
and
52 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