diff options
Diffstat (limited to 'weed/mount/dirty_pages_chunked.go')
| -rw-r--r-- | weed/mount/dirty_pages_chunked.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/weed/mount/dirty_pages_chunked.go b/weed/mount/dirty_pages_chunked.go index d0795148b..59a4e7874 100644 --- a/weed/mount/dirty_pages_chunked.go +++ b/weed/mount/dirty_pages_chunked.go @@ -65,10 +65,6 @@ func (pages *ChunkedDirtyPages) ReadDirtyDataAt(data []byte, startOffset int64) return pages.uploadPipeline.MaybeReadDataAt(data, startOffset) } -func (pages *ChunkedDirtyPages) GetStorageOptions() (collection, replication string) { - return pages.collection, pages.replication -} - func (pages *ChunkedDirtyPages) saveChunkedFileIntevalToStorage(reader io.Reader, offset int64, size int64, cleanupFn func()) { mtime := time.Now().UnixNano() @@ -76,14 +72,13 @@ func (pages *ChunkedDirtyPages) saveChunkedFileIntevalToStorage(reader io.Reader fileFullPath := pages.fh.FullPath() fileName := fileFullPath.Name() - chunk, collection, replication, err := pages.fh.wfs.saveDataAsChunk(fileFullPath)(reader, fileName, offset) + chunk, err := pages.fh.wfs.saveDataAsChunk(fileFullPath)(reader, fileName, offset) if err != nil { glog.V(0).Infof("%v saveToStorage [%d,%d): %v", fileFullPath, offset, offset+size, err) pages.lastErr = err return } chunk.Mtime = mtime - pages.collection, pages.replication = collection, replication pages.fh.AddChunks([]*filer_pb.FileChunk{chunk}) pages.fh.entryViewCache = nil glog.V(3).Infof("%v saveToStorage %s [%d,%d)", fileFullPath, chunk.FileId, offset, offset+size) |
