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
in case when content is not compressed
Chris Lu2f03481cb288
diff --git a/weed/util/compression.go b/weed/util/compression.goindex 4488e019ea..2881a7bfdd 100644--- a/weed/util/compression.go+++ b/weed/util/compression.go@@ -39,7 +39,7 @@ func DecompressData(input []byte) ([]byte, error) {if IsZstdContent(input) {return unzstdData(input)}- return nil, fmt.Errorf("unsupported compression")+ return input, fmt.Errorf("unsupported compression")}func ungzipData(input []byte) ([]byte, error) {diff --git a/weed/util/http_util.go b/weed/util/http_util.goindex c67eb3276b..b3c5a4033a 100644--- a/weed/util/http_util.go+++ b/weed/util/http_util.go@@ -312,7 +312,7 @@ func readEncryptedUrl(fileUrl string, cipherKey []byte, isContentCompressed boolif isContentCompressed {decryptedData, err = DecompressData(decryptedData)if err != nil {- return fmt.Errorf("unzip decrypt %s: %v", fileUrl, err)+ glog.V(0).Info("unzip decrypt %s: %v", fileUrl, err)}}if len(decryptedData) < int(offset)+size {