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
Update store_replicate.go
hxiaodon4e48f64512d3
diff --git a/go/topology/store_replicate.go b/go/topology/store_replicate.goindex dc26dade09..4adb4431e6 100644--- a/go/topology/store_replicate.go+++ b/go/topology/store_replicate.go@@ -95,6 +95,13 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId storfor i := 0; i < length; i++ {ret = ret && <-results}+ if volume := store.GetVolume(volumeId); volume != nil {+ copyCount := volume.ReplicaPlacement.GetCopyCount() - 1+ if length < copyCount {+ glog.V(0).Infoln("replicating opetations [%d] is less than volume's replication copy count [%d]", length, copyCount)+ ret = false+ }+ }return ret} else {glog.V(0).Infoln("Failed to lookup for", volumeId, lookupErr.Error())