Browse Source

Merge pull request #2749 from junxu/master

raft: fix typo in raftlog
Xiang Li 10 years ago
parent
commit
41c7b43dc5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      raft/log.go

+ 1 - 1
raft/log.go

@@ -65,7 +65,7 @@ func newLog(storage Storage) *raftLog {
 }
 }
 
 
 func (l *raftLog) String() string {
 func (l *raftLog) String() string {
-	return fmt.Sprintf("committed=%d, applied=%d, unstable.offset=%d, len(unstable.Entries)=%d", l.unstable.offset, l.committed, l.applied, len(l.unstable.entries))
+	return fmt.Sprintf("committed=%d, applied=%d, unstable.offset=%d, len(unstable.Entries)=%d", l.committed, l.applied, l.unstable.offset, len(l.unstable.entries))
 }
 }
 
 
 // maybeAppend returns (0, false) if the entries cannot be appended. Otherwise,
 // maybeAppend returns (0, false) if the entries cannot be appended. Otherwise,