Browse Source

wal: remove wrong comment for cut

Xiang Li 11 years ago
parent
commit
8e0ee1cc5e
1 changed files with 0 additions and 1 deletions
  1. 0 1
      wal/wal.go

+ 0 - 1
wal/wal.go

@@ -202,7 +202,6 @@ func (w *WAL) ReadAll() (id int64, state raftpb.State, ents []raftpb.Entry, err
 	return id, state, ents, nil
 }
 
-// index should be the index of last log entry.
 // Cut closes current file written and creates a new one ready to append.
 func (w *WAL) Cut() error {
 	log.Printf("wal.cut index=%d", w.enti+1)