filer.backup: backup small files if the file is saved in filer (saveToFilerLimit > 0)

fix https://github.com/seaweedfs/seaweedfs/issues/3468
This commit is contained in:
chrislu
2022-08-19 23:00:56 -07:00
parent fdd8c5d5e0
commit 11f99836c3
6 changed files with 34 additions and 1 deletions

View File

@@ -101,6 +101,10 @@ func (localsink *LocalSink) CreateEntry(key string, entry *filer_pb.Entry, signa
return writeErr
}
if len(entry.Content) > 0 {
return writeFunc(entry.Content)
}
if err := repl_util.CopyFromChunkViews(chunkViews, localsink.filerSource, writeFunc); err != nil {
return err
}