Browse Source

raft: Add applied to the newRaft log message.

Ben Darnell 11 years ago
parent
commit
8c3a6508e9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      raft/raft.go

+ 2 - 2
raft/raft.go

@@ -183,8 +183,8 @@ func newRaft(id uint64, peers []uint64, election, heartbeat int, storage Storage
 		nodesStrs = append(nodesStrs, fmt.Sprintf("%x", n))
 		nodesStrs = append(nodesStrs, fmt.Sprintf("%x", n))
 	}
 	}
 
 
-	log.Printf("raft: newRaft %x [peers: [%s], term: %d, commit: %d, lastindex: %d, lastterm: %d]",
-		r.id, strings.Join(nodesStrs, ","), r.Term, r.raftLog.committed, r.raftLog.lastIndex(), r.raftLog.lastTerm())
+	log.Printf("raft: newRaft %x [peers: [%s], term: %d, commit: %d, applied: %d, lastindex: %d, lastterm: %d]",
+		r.id, strings.Join(nodesStrs, ","), r.Term, r.raftLog.committed, r.raftLog.applied, r.raftLog.lastIndex(), r.raftLog.lastTerm())
 	return r
 	return r
 }
 }