Merge pull request #6738 from gyuho/raft-cleanup

etcdserver: move 'EtcdServer.send' to raft.go
This commit is contained in:
Gyu-Ho Lee
2016-10-31 15:15:08 -07:00
committed by GitHub
4 changed files with 70 additions and 63 deletions

View File

@ -971,14 +971,15 @@ func TestConcurrentApplyAndSnapshotV3(t *testing.T) {
DataDir: testdir,
},
r: raftNode{
isIDRemoved: func(id uint64) bool { return cl.IsIDRemoved(types.ID(id)) },
Node: n,
transport: tr,
storage: mockstorage.NewStorageRecorder(testdir),
raftStorage: rs,
msgSnapC: make(chan raftpb.Message, maxInFlightMsgSnap),
},
store: st,
cluster: cl,
msgSnapC: make(chan raftpb.Message, maxInFlightMsgSnap),
store: st,
cluster: cl,
}
s.applyV2 = &applierV2store{store: s.store, cluster: s.cluster}