Browse Source

wal: use CreateDirAll

Gyu-Ho Lee 9 years ago
parent
commit
6cfc03a5f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wal/wal.go

+ 1 - 1
wal/wal.go

@@ -97,7 +97,7 @@ func Create(dirpath string, metadata []byte) (*WAL, error) {
 			return nil, err
 		}
 	}
-	if err := os.MkdirAll(tmpdirpath, fileutil.PrivateDirMode); err != nil {
+	if err := fileutil.CreateDirAll(tmpdirpath); err != nil {
 		return nil, err
 	}