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
join via filepath
Chris Lub1b8c4ed328a
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.goindex 5884bd35bb..215be59929 100644--- a/weed/replication/replicator.go+++ b/weed/replication/replicator.go@@ -1,6 +1,7 @@package replicationimport (+ "path/filepath""strings""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"@@ -35,7 +36,7 @@ func (r *Replicator) Replicate(key string, message *filer_pb.EventNotification)if !strings.HasPrefix(key, r.source.Dir) {return nil}- key = r.sink.GetSinkToDirectory() + key[len(r.source.Dir):]+ key = filepath.Join(r.sink.GetSinkToDirectory(), key[len(r.source.Dir):])if message.OldEntry != nil && message.NewEntry == nil {return r.sink.DeleteEntry(key, message.OldEntry, message.DeleteChunks)}