aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-09-22 00:11:46 -0700
committerChris Lu <chris.lu@gmail.com>2018-09-22 00:11:46 -0700
commit7bb62b9f21c92ad8c218eab236c136606fc7153a (patch)
tree64dd12151ef2a335b85bea4e46d7bc4de5268503 /weed/command
parentf905a1e779fdb9333f0fc08817cdbe33c261a25d (diff)
downloadseaweedfs-7bb62b9f21c92ad8c218eab236c136606fc7153a.tar.xz
seaweedfs-7bb62b9f21c92ad8c218eab236c136606fc7153a.zip
delay file creation without chunks from dir.Create to file.Flush
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/filer_replication.go8
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)
}