diff options
Diffstat (limited to 'weed/replication/replicator.go')
| -rw-r--r-- | weed/replication/replicator.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.go index 4f5d5203e..66d194128 100644 --- a/weed/replication/replicator.go +++ b/weed/replication/replicator.go @@ -1,12 +1,13 @@ package replication import ( - "github.com/chrislusf/seaweedfs/weed/replication/sink" - "github.com/chrislusf/seaweedfs/weed/util" - "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" - "github.com/chrislusf/seaweedfs/weed/replication/source" "strings" + "github.com/chrislusf/seaweedfs/weed/glog" + "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" + "github.com/chrislusf/seaweedfs/weed/replication/sink" + "github.com/chrislusf/seaweedfs/weed/replication/source" + "github.com/chrislusf/seaweedfs/weed/util" ) type Replicator struct { @@ -30,6 +31,8 @@ func NewReplicator(sourceConfig, sinkConfig util.Configuration) *Replicator { } } + sink.SetSourceFiler(source) + return &Replicator{ sink: sink, source: source, |
