WIP: support multiple wals

Hint: io.MultiReader

On Thursday, August 21, 2014, Xiang Li <notifications@github.com> wrote:

> In wal/wal.go:
>
> > @@ -44,29 +51,62 @@ func newWAL(f *os.File) *WAL {
> >  	return &WAL{f, bufio.NewWriter(f), new(bytes.Buffer)}
> >  }
> >
> > -func New(path string) (*WAL, error) {
> > -	log.Printf("path=%s wal.new", path)
> > -	f, err := os.Open(path)
> > -	if err == nil {
> > -		f.Close()
> > +func New(dirpath string) (*WAL, error) {
>
> @unihorn <https://github.com/unihorn> have you ever used this function?
> i do not think we need this...
> when start an etcd server, the first thing we do is to *check* wal dir
> rather than create it right now.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/etcd-team/etcd/pull/52/files#r16579281>.
>