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
docs(topology): readability improvements (#3688)
Ryan Russella63597384782
diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.goindex bbca859aca..1f6fc0568b 100644--- a/weed/topology/store_replicate.go+++ b/weed/topology/store_replicate.go@@ -205,7 +205,7 @@ func GetWritableRemoteReplications(s *storage.Store, grpcDialOption grpc.DialOpt// has one local and has remote replicationscopyCount := v.ReplicaPlacement.GetCopyCount()if len(lookupResult.Locations) < copyCount {- err = fmt.Errorf("replicating opetations [%d] is less than volume %d replication copy count [%d]",+ err = fmt.Errorf("replicating operations [%d] is less than volume %d replication copy count [%d]",len(lookupResult.Locations), volumeId, copyCount)}}diff --git a/weed/topology/volume_layout_test.go b/weed/topology/volume_layout_test.goindex ce2fa0d194..b5646fb13d 100644--- a/weed/topology/volume_layout_test.go+++ b/weed/topology/volume_layout_test.go@@ -54,7 +54,7 @@ func TestVolumesBinaryState(t *testing.T) {expectResultAfterUpdate []bool}{{- name: "mark true when exist copies",+ name: "mark true when copies exist",state: state_exist,expectResult: []bool{true, true, true, false, true},update: func() {@@ -67,7 +67,7 @@ func TestVolumesBinaryState(t *testing.T) {expectResultAfterUpdate: []bool{true, false, true, false, false},},{- name: "mark true when inexist copies",+ name: "mark true when no copies exist",state: state_no,expectResult: []bool{false, true, true, false, true},update: func() {@@ -92,7 +92,7 @@ func TestVolumesBinaryState(t *testing.T) {}for index, val := range result {if val != test.expectResult[index] {- t.Fatalf("result not matched, index %d, got %v, expect %v\n",+ t.Fatalf("result not matched, index %d, got %v, expected %v\n",index, val, test.expectResult[index])}}@@ -107,7 +107,7 @@ func TestVolumesBinaryState(t *testing.T) {}for index, val := range updateResult {if val != test.expectResultAfterUpdate[index] {- t.Fatalf("update result not matched, index %d, got %v, expect %v\n",+ t.Fatalf("update result not matched, index %d, got %v, expected %v\n",index, val, test.expectResultAfterUpdate[index])}}