mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1789 from yichengq/234
rafthttp: only batch good MsgAppResp
This commit is contained in:
commit
006da2f8a0
@ -37,5 +37,5 @@ func (b *Batcher) Reset(t time.Time) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func canBatch(m raftpb.Message) bool {
|
func canBatch(m raftpb.Message) bool {
|
||||||
return m.Type == raftpb.MsgAppResp
|
return m.Type == raftpb.MsgAppResp && m.Reject == false
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user