We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc456a5 commit 6a60343Copy full SHA for 6a60343
status.go
@@ -39,6 +39,8 @@ type BasicStatus struct {
39
Applied uint64
40
41
LeadTransferee uint64
42
+
43
+ LogSize uint64
44
}
45
46
func getProgressCopy(r *raft) map[uint64]tracker.Progress {
@@ -61,6 +63,7 @@ func getBasicStatus(r *raft) BasicStatus {
61
63
s.HardState = r.hardState()
62
64
s.SoftState = r.softState()
65
s.Applied = r.raftLog.applied
66
+ s.LogSize = r.raftLog.lastIndex()
67
return s
68
69
0 commit comments