add comment for stabled

Signed-off-by: Connor <zbk602423539@gmail.com>
This commit is contained in:
Connor
2020-04-13 00:34:15 +08:00
parent b5316ae4d5
commit bda9f18a70

View File

@@ -37,7 +37,9 @@ type RaftLog struct {
// Invariant: applied <= committed
applied uint64
// log entries with index <= stabled are stabled to storage
// log entries with index <= stabled are persisted to storage.
// It is used to record the logs that are not persisted by storage yet.
// Everytime handling `Ready`, the unstabled logs will be included.
stabled uint64
// all entries that have not yet compact.