mirror of
https://github.com/talent-plan/tinykv.git
synced 2024-12-25 20:30:30 +08:00
tiny change for softstate comment
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
This commit is contained in:
parent
2792ccd03e
commit
284b736572
@ -27,10 +27,9 @@ var ErrStepLocalMsg = errors.New("raft: cannot step raft local message")
|
||||
// but there is no peer found in raft.Prs for that node.
|
||||
var ErrStepPeerNotFound = errors.New("raft: cannot step as peer not found")
|
||||
|
||||
// SoftState provides state that is useful for logging and debugging.
|
||||
// The state is volatile and does not need to be persisted to the WAL.
|
||||
// SoftState provides state that is volatile and does not need to be persisted to the WAL.
|
||||
type SoftState struct {
|
||||
Lead uint64 // must use atomic operations to access; keep 64-bit aligned.
|
||||
Lead uint64
|
||||
RaftState StateType
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user