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
avoid possible runtime error: index out of range [0] with length 0
chrisluf1713c96ae40
diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.goindex be6e0c6529..d2110bccd3 100644--- a/weed/server/filer_server_handlers_write_autochunk.go+++ b/weed/server/filer_server_handlers_write_autochunk.go@@ -159,7 +159,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNavar mergedChunks []*filer_pb.FileChunkisAppend := r.URL.Query().Get("op") == "append"- isOffsetWrite := fileChunks[0].Offset > 0+ isOffsetWrite := len(fileChunks) > 0 && fileChunks[0].Offset > 0// when it is an appendif isAppend || isOffsetWrite {existingEntry, findErr := fs.filer.FindEntry(ctx, util.FullPath(path))