Merge pull request #1789 from yichengq/234

rafthttp: only batch good MsgAppResp
This commit is contained in:
Yicheng Qin 2014-11-25 18:46:23 -08:00
commit 006da2f8a0

View File

@ -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
} }