diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-02-28 16:19:03 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-02-28 16:19:03 -0800 |
| commit | 678c54d705e5c29b2fdb580158a4455703b46a0d (patch) | |
| tree | f1b6e45b078720a955cf4ce3cfa29e4afab05f62 /weed/replication/replicator.go | |
| parent | 4ff2c5c4c9ec13f83433cb723f125566afa93d3e (diff) | |
| download | seaweedfs-678c54d705e5c29b2fdb580158a4455703b46a0d.tar.xz seaweedfs-678c54d705e5c29b2fdb580158a4455703b46a0d.zip | |
data sink: add incremental mode
Diffstat (limited to 'weed/replication/replicator.go')
| -rw-r--r-- | weed/replication/replicator.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/replication/replicator.go b/weed/replication/replicator.go index 7688029e6..d7e609c68 100644 --- a/weed/replication/replicator.go +++ b/weed/replication/replicator.go @@ -42,7 +42,7 @@ func (r *Replicator) Replicate(ctx context.Context, key string, message *filer_p return nil } var dateKey string - if r.sink.GetName() == "local_incremental" { + if r.sink.IsIncremental() { var mTime int64 if message.NewEntry != nil { mTime = message.NewEntry.Attributes.Mtime |
