SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
prevent nil
chrislubb4beebce368
diff --git a/weed/filer/filechunks.go b/weed/filer/filechunks.goindex fd9694b381..11a779147f 100644--- a/weed/filer/filechunks.go+++ b/weed/filer/filechunks.go@@ -23,6 +23,9 @@ func TotalSize(chunks []*filer_pb.FileChunk) (size uint64) {}func FileSize(entry *filer_pb.Entry) (size uint64) {+ if entry == nil || entry.Attributes == nil {+ return 0+ }fileSize := entry.Attributes.FileSizeif entry.RemoteEntry != nil {if entry.RemoteEntry.RemoteMtime > entry.Attributes.Mtime {