Skip to content
Permalink
Browse files

Merge pull request #3860 from gyuho/typo_in_wal

wal: minor typo in wal pkg
  • Loading branch information...
xiang90 committed Nov 13, 2015
2 parents 5acf557 + 55adfcb commit 185097ffaa627b909007e772c175e8fefac17af3
Showing with 1 addition and 1 deletion.
  1. +1 −1 wal/wal.go
@@ -329,7 +329,7 @@ func (w *WAL) cut() error {
fpath := path.Join(w.dir, walName(w.seq+1, w.enti+1))
ftpath := fpath + ".tmp"

// create a temp wal file with name sequence + 1, or tuncate the existing one
// create a temp wal file with name sequence + 1, or truncate the existing one
ft, err := os.OpenFile(ftpath, os.O_WRONLY|os.O_APPEND|os.O_CREATE|os.O_TRUNC, 0600)
if err != nil {
return err

0 comments on commit 185097f

Please sign in to comment.
You can’t perform that action at this time.