mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #1420 from xiangli-cmu/clean_log
raft: remove unused code
This commit is contained in:
commit
40048d7300
@ -40,10 +40,6 @@ func newLog() *raftLog {
|
||||
}
|
||||
}
|
||||
|
||||
func (l *raftLog) isEmpty() bool {
|
||||
return l.offset == 0 && len(l.ents) == 1
|
||||
}
|
||||
|
||||
func (l *raftLog) load(ents []pb.Entry) {
|
||||
l.ents = ents
|
||||
l.unstable = l.offset + uint64(len(ents))
|
||||
|
Loading…
x
Reference in New Issue
Block a user