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
go fmt
Chris Lu296acc4a0ac8
diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.goindex e47cb762f8..b248a8c592 100644--- a/weed/filer2/filechunks.go+++ b/weed/filer2/filechunks.go@@ -1,10 +1,10 @@package filer2import (+ "fmt"+ "hash/fnv""math""sort"- "hash/fnv"- "fmt""github.com/chrislusf/seaweedfs/weed/pb/filer_pb")diff --git a/weed/filesys/dirty_page.go b/weed/filesys/dirty_page.goindex dd080f7217..3b55d5c0bd 100644--- a/weed/filesys/dirty_page.go+++ b/weed/filesys/dirty_page.go@@ -130,7 +130,6 @@ func (pages *ContinuousDirtyPages) saveExistingPagesToStorage(ctx context.Contexfunc (pages *ContinuousDirtyPages) saveToStorage(ctx context.Context, buf []byte, offset int64) (*filer_pb.FileChunk, error) {-var fileId, host stringif err := pages.f.wfs.withFilerClient(func(client filer_pb.SeaweedFilerClient) error {diff --git a/weed/s3api/filer_multipart.go b/weed/s3api/filer_multipart.goindex d9cafae268..cfd46c9f80 100644--- a/weed/s3api/filer_multipart.go+++ b/weed/s3api/filer_multipart.go@@ -2,17 +2,17 @@ package s3apiimport ("fmt"- "time"- "strings"- "strconv""path/filepath"+ "strconv"+ "strings"+ "time"- "github.com/aws/aws-sdk-go/service/s3""github.com/aws/aws-sdk-go/aws"- "github.com/satori/go.uuid"+ "github.com/aws/aws-sdk-go/service/s3"+ "github.com/chrislusf/seaweedfs/weed/filer2""github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"- "github.com/chrislusf/seaweedfs/weed/filer2"+ "github.com/satori/go.uuid")func (s3a *S3ApiServer) createMultipartUpload(input *s3.CreateMultipartUploadInput) (output *s3.CreateMultipartUploadOutput, code ErrorCode) {diff --git a/weed/s3api/s3api_object_multipart_handlers.go b/weed/s3api/s3api_object_multipart_handlers.goindex 042736856b..d9baa9aae3 100644--- a/weed/s3api/s3api_object_multipart_handlers.go+++ b/weed/s3api/s3api_object_multipart_handlers.go@@ -1,16 +1,16 @@package s3apiimport (- "net/http"- "github.com/gorilla/mux"+ "encoding/xml""fmt"- "github.com/aws/aws-sdk-go/service/s3""github.com/aws/aws-sdk-go/aws"- "net/url"- "strconv"+ "github.com/aws/aws-sdk-go/service/s3"+ "github.com/gorilla/mux""io/ioutil"- "encoding/xml"+ "net/http"+ "net/url""sort"+ "strconv""strings")diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.goindex e104b4c9e3..d751a3b1d5 100644--- a/weed/s3api/s3api_objects_list_handlers.go+++ b/weed/s3api/s3api_objects_list_handlers.go@@ -11,10 +11,10 @@ import ("github.com/aws/aws-sdk-go/aws""github.com/aws/aws-sdk-go/service/s3"+ "github.com/chrislusf/seaweedfs/weed/filer2""github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb/filer_pb""github.com/gorilla/mux"- "github.com/chrislusf/seaweedfs/weed/filer2")const (diff --git a/weed/s3api/s3api_server.go b/weed/s3api/s3api_server.goindex efeeb34ce3..a62b521de0 100644--- a/weed/s3api/s3api_server.go+++ b/weed/s3api/s3api_server.go@@ -37,7 +37,7 @@ func (s3a *S3ApiServer) registerRouter(router *mux.Router) {apiRouter := router.PathPrefix("/").Subrouter()var routers []*mux.Routerif s3a.option.DomainName != "" {- routers = append(routers, apiRouter.Host("{bucket:.+}."+ s3a.option.DomainName).Subrouter())+ routers = append(routers, apiRouter.Host("{bucket:.+}."+s3a.option.DomainName).Subrouter())}routers = append(routers, apiRouter.PathPrefix("/{bucket}").Subrouter())