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
Uh oh!
There was an error while loading. Please reload this page.
-
Readyhas several pairs of methods to either borrow or take the inner state:message/take_messageread_states/take_read_statesentries/take_entriescommitted_entries/take_committed_entriespersisted_messages/take_persisted_messagesAll of them are
pubmethods 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