diff options
Diffstat (limited to 'weed/filer/filer_notify_append.go')
| -rw-r--r-- | weed/filer/filer_notify_append.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filer_notify_append.go b/weed/filer/filer_notify_append.go index 94d976f1e..5c03d4f16 100644 --- a/weed/filer/filer_notify_append.go +++ b/weed/filer/filer_notify_append.go @@ -36,11 +36,11 @@ func (f *Filer) appendToFile(targetFile string, data []byte) error { } else if err != nil { return fmt.Errorf("find %s: %v", fullpath, err) } else { - offset = int64(TotalSize(entry.Chunks)) + offset = int64(TotalSize(entry.GetChunks())) } // append to existing chunks - entry.Chunks = append(entry.Chunks, uploadResult.ToPbFileChunk(assignResult.Fid, offset)) + entry.Chunks = append(entry.GetChunks(), uploadResult.ToPbFileChunk(assignResult.Fid, offset)) // update the entry err = f.CreateEntry(context.Background(), entry, false, false, nil, false) |
