Explorar o código

wal: remove wrong comment for cut

Xiang Li %!s(int64=12) %!d(string=hai) anos
pai
achega
8e0ee1cc5e
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  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)