From 55adfcb42879184e08f66e9bad0aa31a74f7e90c Mon Sep 17 00:00:00 2001 From: Gyu-Ho Lee Date: Thu, 12 Nov 2015 15:23:12 -0800 Subject: [PATCH] wal: minor typo in wal pkg Fixes a minor typo in wal.go. Thanks! --- wal/wal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wal/wal.go b/wal/wal.go index 9a456fc7b..62c63c054 100644 --- a/wal/wal.go +++ b/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