aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
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)
}