Replies: 1 comment 1 reply
-
They are just accessors that allow read-only or move operations. raft doesn't not depend on or check if they are processed, it just always assume application has processed the ready following the protocol described in docs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ready
has several pairs of methods to either borrow or take the inner state:message
/take_message
read_states
/take_read_states
entries
/take_entries
committed_entries
/take_committed_entries
persisted_messages
/take_persisted_messages
All of them are
pub
methods and I don't know if I should always take the state and maintain myself or just borrow them on read-only case - does raft core processing logic depend on whether or not the state is taken?cc @BusyJay
Beta Was this translation helpful? Give feedback.
All reactions