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
change uuid package
Chris Luba73c053c3cf
diff --git a/go.mod b/go.modindex 69e814bbc2..24948591a0 100644--- a/go.mod+++ b/go.mod@@ -37,6 +37,7 @@ require (github.com/golang/protobuf v1.3.2github.com/google/btree v1.0.0github.com/google/pprof v0.0.0-20190723021845-34ac40c74b70 // indirect+ github.com/google/uuid v1.1.1github.com/gorilla/mux v1.7.3github.com/gorilla/websocket v1.4.1 // indirectgithub.com/grpc-ecosystem/grpc-gateway v1.11.0 // indirectdiff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.goindex 3bf4aafacb..d3bde66eea 100644--- a/weed/s3api/filer_multipart.go+++ b/weed/s3api/filer_multipart.go@@ -14,7 +14,7 @@ import ("github.com/chrislusf/seaweedfs/weed/filer2""github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/satori/go.uuid"+ "github.com/google/uuid")type InitiateMultipartUploadResult struct {@@ -23,7 +23,7 @@ type InitiateMultipartUploadResult struct {}func (s3a *S3ApiServer) createMultipartUpload(ctx context.Context, input *s3.CreateMultipartUploadInput) (output *InitiateMultipartUploadResult, code ErrorCode) {- uploadId, _ := uuid.NewV4()+ uploadId, _ := uuid.NewRandom()uploadIdString := uploadId.String()if err := s3a.mkdir(ctx, s3a.genUploadsFolder(*input.Bucket), uploadIdString, func(entry *filer_pb.Entry) {