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
refactoring
chrisluea57654e3435
diff --git a/weed/shell/command_collection_list.go b/weed/shell/command_collection_list.goindex b2aa6d2f47..bc9f115bd8 100644--- a/weed/shell/command_collection_list.go+++ b/weed/shell/command_collection_list.go@@ -45,7 +45,7 @@ func (c *commandCollectionList) Do(args []string, commandEnv *CommandEnv, writercollectionInfos := make(map[string]*CollectionInfo)- writeCollectionInfo(writer, topologyInfo, collectionInfos)+ collectCollectionInfo(topologyInfo, collectionInfos)for _, c := range collections {cif, found := collectionInfos[c]@@ -92,7 +92,7 @@ func addToCollection(collectionInfos map[string]*CollectionInfo, vif *master_pb.cif.VolumeCount++}-func writeCollectionInfo(writer io.Writer, t *master_pb.TopologyInfo, collectionInfos map[string]*CollectionInfo) {+func collectCollectionInfo(t *master_pb.TopologyInfo, collectionInfos map[string]*CollectionInfo) {for _, dc := range t.DataCenterInfos {for _, r := range dc.RackInfos {for _, dn := range r.DataNodeInfos {