瀏覽代碼

wal: remove wrong comment for cut

Xiang Li 11 年之前
父節點
當前提交
8e0ee1cc5e
共有 1 個文件被更改,包括 0 次插入1 次删除
  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
 	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.
 // Cut closes current file written and creates a new one ready to append.
 func (w *WAL) Cut() error {
 func (w *WAL) Cut() error {
 	log.Printf("wal.cut index=%d", w.enti+1)
 	log.Printf("wal.cut index=%d", w.enti+1)