diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-01-22 23:00:04 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-01-22 23:00:04 -0800 |
| commit | c2e589f202b84b5beb98f1f5c243cc38b58f232b (patch) | |
| tree | 8488688a1812620705e59bee378b0530e1654cb9 /weed/filesys/file.go | |
| parent | 6a5c0370995653621fa8b576ea149e91875938d6 (diff) | |
| download | seaweedfs-c2e589f202b84b5beb98f1f5c243cc38b58f232b.tar.xz seaweedfs-c2e589f202b84b5beb98f1f5c243cc38b58f232b.zip | |
mount: better combines connected intervals to write to volume servers
Diffstat (limited to 'weed/filesys/file.go')
| -rw-r--r-- | weed/filesys/file.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go index b1d53507b..5a823f516 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -230,12 +230,6 @@ func (file *File) maybeLoadEntry(ctx context.Context) error { return nil } -func (file *File) addChunk(chunk *filer_pb.FileChunk) { - if chunk != nil { - file.addChunks([]*filer_pb.FileChunk{chunk}) - } -} - func (file *File) addChunks(chunks []*filer_pb.FileChunk) { sort.Slice(chunks, func(i, j int) bool { |
