在raftlog结构体中,有一个变量为
// all entries that have not yet compact.
entries []pb.Entry
在memoryStorage结构体中,有一个变量为
// ents[i] has raft log position i+snapshot.Metadata.Index
ents []pb.Entry
请问在Raft层调用appendEntries等函数,获得commit等变量时,是不是都在log.entries上操作? 那这样的话,storage中的ents的作用是什么呢?