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 Lua0e84c4fbcda
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.goindex 9443bc0bf9..b41d76cd67 100644--- a/weed/filesys/wfs.go+++ b/weed/filesys/wfs.go@@ -3,8 +3,8 @@ package filesysimport ("context""fmt"- "github.com/chrislusf/seaweedfs/weed/storage""github.com/chrislusf/seaweedfs/weed/filer"+ "github.com/chrislusf/seaweedfs/weed/storage""github.com/chrislusf/seaweedfs/weed/wdclient""math""os"diff --git a/weed/replication/sink/filersink/filer_sink.go b/weed/replication/sink/filersink/filer_sink.goindex 9960634f6d..509f75116a 100644--- a/weed/replication/sink/filersink/filer_sink.go+++ b/weed/replication/sink/filersink/filer_sink.go@@ -25,7 +25,7 @@ type FilerSink struct {replication stringcollection stringttlSec int32- diskType string+ diskType stringdataCenter stringgrpcDialOption grpc.DialOptionaddress stringdiff --git a/weed/s3api/s3api_object_handlers.go b/weed/s3api/s3api_object_handlers.goindex c9e1243286..4c408110a4 100644--- a/weed/s3api/s3api_object_handlers.go+++ b/weed/s3api/s3api_object_handlers.go@@ -223,7 +223,7 @@ func (s3a *S3ApiServer) DeleteMultipleObjectsHandler(w http.ResponseWriter, r *h}-func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int){+func doDeleteEmptyDirectories(client filer_pb.SeaweedFilerClient, directoriesWithDeletion map[string]int) (newDirectoriesWithDeletion map[string]int) {var allDirs []stringfor dir, _ := range directoriesWithDeletion {allDirs = append(allDirs, dir)diff --git a/weed/util/bounded_tree/bounded_tree.go b/weed/util/bounded_tree/bounded_tree.goindex e49c1e50a0..3a8a22a9c3 100644--- a/weed/util/bounded_tree/bounded_tree.go+++ b/weed/util/bounded_tree/bounded_tree.go@@ -70,7 +70,6 @@ func (t *BoundedTree) ensureVisited(n *Node, currentPath util.FullPath, componen} else {// fmt.Printf("ensure %v\n", currentPath)-children, err := visitFn(currentPath)if err != nil {glog.V(0).Infof("failed to visit %s: %v", currentPath, err)