mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Document Raft.send method.
The change makes it explicit that sending messages does not happen immidietely and is subject to proper persist & then send protocol on the application side. See: https://github.com/etcd-io/etcd/issues/12589#issuecomment-752867024 for more context.
This commit is contained in:
parent
58f78df1de
commit
bf6f173d5e
@ -397,7 +397,8 @@ func (r *raft) hardState() pb.HardState {
|
||||
}
|
||||
}
|
||||
|
||||
// send persists state to stable storage and then sends to its mailbox.
|
||||
// send schedules persisting state to a stable storage and AFTER that
|
||||
// sending the message (as part of next Ready message processing).
|
||||
func (r *raft) send(m pb.Message) {
|
||||
if m.From == None {
|
||||
m.From = r.id
|
||||
|
Loading…
x
Reference in New Issue
Block a user