remove Size from Attr

This commit is contained in:
Chris Lu
2018-05-13 00:11:26 -07:00
parent fc7f81f6e7
commit 75a2b05aa3
3 changed files with 25 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import (
"github.com/google/btree"
"strings"
"fmt"
"time"
)
type MemDbStore struct {
@@ -37,6 +38,7 @@ func (filer *MemDbStore) AppendFileChunk(fullpath filer2.FullPath, fileChunk fil
return fmt.Errorf("No such file: %s", fullpath)
}
entry.Chunks = append(entry.Chunks, fileChunk)
entry.Mtime = time.Now()
return nil
}