diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-04 11:58:59 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-04 11:58:59 -0800 |
| commit | 8dfac6a4cf8d2d21a3a69528136422e7f7a75d32 (patch) | |
| tree | 87fcaa6560b29dbbcea555e71fcffdfdcaaac9cb /weed/replication/replicator.go | |
| parent | f050b22d6c319971aae3244f65f4420570f0895f (diff) | |
| download | seaweedfs-8dfac6a4cf8d2d21a3a69528136422e7f7a75d32.tar.xz seaweedfs-8dfac6a4cf8d2d21a3a69528136422e7f7a75d32.zip | |
working b2 sink
Diffstat (limited to 'weed/replication/replicator.go')
| -rw-r--r-- | weed/replication/replicator.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.go index 208e0894a..ac8235fd5 100644 --- a/weed/replication/replicator.go +++ b/weed/replication/replicator.go @@ -34,7 +34,9 @@ func (r *Replicator) Replicate(key string, message *filer_pb.EventNotification) glog.V(4).Infof("skipping %v outside of %v", key, r.source.Dir) return nil } - key = filepath.Join(r.sink.GetSinkToDirectory(), key[len(r.source.Dir):]) + newKey := filepath.Join(r.sink.GetSinkToDirectory(), key[len(r.source.Dir):]) + glog.V(3).Infof("replicate %s => %s", key, newKey) + key = newKey if message.OldEntry != nil && message.NewEntry == nil { glog.V(4).Infof("deleting %v", key) return r.sink.DeleteEntry(key, message.OldEntry.IsDirectory, message.DeleteChunks) |
