cswal -> cs_wal_dir

This commit is contained in:
Jae Kwon
2016-10-30 03:55:27 -07:00
parent 1788a68b1c
commit 3d3d8b5b7b
10 changed files with 43 additions and 55 deletions

View File

@@ -40,8 +40,8 @@ type WAL struct {
light bool // ignore block parts
}
func NewWAL(path string, light bool) (*WAL, error) {
head, err := auto.OpenAutoFile(path)
func NewWAL(walDir string, light bool) (*WAL, error) {
head, err := auto.OpenAutoFile(walDir + "/wal")
if err != nil {
return nil, err
}