mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
wal: minor typo in wal pkg
Fixes a minor typo in wal.go. Thanks!
This commit is contained in:
parent
5acf5579b7
commit
55adfcb428
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user