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
add logging
Chris Lu4a8ef198d7ed
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.goindex d5a57ecac1..16103577f0 100644--- a/weed/replication/replicator.go+++ b/weed/replication/replicator.go@@ -35,9 +35,11 @@ func (r *Replicator) Replicate(key string, message *filer_pb.EventNotification)}key = filepath.Join(r.sink.GetSinkToDirectory(), key[len(r.source.Dir):])if message.OldEntry != nil && message.NewEntry == nil {+ glog.V(4).Infof("deleting %v", key)return r.sink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks)}if message.OldEntry == nil && message.NewEntry != nil {+ glog.V(4).Infof("creating %v", key)return r.sink.CreateEntry(key, message.NewEntry)}if message.OldEntry == nil && message.NewEntry == nil {@@ -47,8 +49,10 @@ func (r *Replicator) Replicate(key string, message *filer_pb.EventNotification)foundExisting, err := r.sink.UpdateEntry(key, message.OldEntry, message.NewEntry, message.DeleteChunks)if foundExisting {+ glog.V(4).Infof("updated %v", key)return err}+ glog.V(4).Infof("creating missing %v", key)return r.sink.CreateEntry(key, message.NewEntry)}