diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-09-22 00:11:46 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-09-22 00:11:46 -0700 |
| commit | 7bb62b9f21c92ad8c218eab236c136606fc7153a (patch) | |
| tree | 64dd12151ef2a335b85bea4e46d7bc4de5268503 /weed/command/filer_replication.go | |
| parent | f905a1e779fdb9333f0fc08817cdbe33c261a25d (diff) | |
| download | seaweedfs-7bb62b9f21c92ad8c218eab236c136606fc7153a.tar.xz seaweedfs-7bb62b9f21c92ad8c218eab236c136606fc7153a.zip | |
delay file creation without chunks from dir.Create to file.Flush
Diffstat (limited to 'weed/command/filer_replication.go')
| -rw-r--r-- | weed/command/filer_replication.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/weed/command/filer_replication.go b/weed/command/filer_replication.go index c5a8b3c84..1f239a981 100644 --- a/weed/command/filer_replication.go +++ b/weed/command/filer_replication.go @@ -52,7 +52,13 @@ func runFilerReplicate(cmd *Command, args []string) bool { glog.Errorf("receive %s: %+v", key, err) continue } - glog.V(1).Infof("processing file: %s", key) + if m.OldEntry!=nil&&m.NewEntry==nil{ + glog.V(1).Infof("delete: %s", key) + }else if m.OldEntry==nil&&m.NewEntry!=nil{ + glog.V(1).Infof(" add: %s", key) + }else{ + glog.V(1).Infof("modify: %s", key) + } if err = replicator.Replicate(key, m); err != nil { glog.Errorf("replicate %s: %+v", key, err) } |
