refactoring, same logic, but the store replication logic is moved to a

stand-alone file, for later easier improvements
This commit is contained in:
Chris Lu
2013-04-16 00:10:21 -07:00
parent e4da140d0a
commit 915b16f97a
6 changed files with 108 additions and 89 deletions

View File

@@ -3,7 +3,6 @@ package main
import (
"archive/tar"
"bytes"
"code.google.com/p/weed-fs/go/directory"
"code.google.com/p/weed-fs/go/storage"
"fmt"
"log"
@@ -127,7 +126,7 @@ type nameParams struct {
}
func walker(vid storage.VolumeId, n *storage.Needle, version storage.Version) (err error) {
key := directory.NewFileId(vid, n.Id, n.Cookie).String()
key := storage.NewFileId(vid, n.Id, n.Cookie).String()
if tarFh != nil {
fnTmplBuf.Reset()
if err = fnTmpl.Execute(fnTmplBuf,