Browse Source

go fmt

pull/747/head
Chris Lu 6 years ago
parent
commit
402ab598b6
  1. 6
      weed/command/filer_replication.go
  2. 2
      weed/filesys/file.go

6
weed/command/filer_replication.go

@ -52,11 +52,11 @@ func runFilerReplicate(cmd *Command, args []string) bool {
glog.Errorf("receive %s: %+v", key, err)
continue
}
if m.OldEntry!=nil&&m.NewEntry==nil{
if m.OldEntry != nil && m.NewEntry == nil {
glog.V(1).Infof("delete: %s", key)
}else if m.OldEntry==nil&&m.NewEntry!=nil{
} else if m.OldEntry == nil && m.NewEntry != nil {
glog.V(1).Infof(" add: %s", key)
}else{
} else {
glog.V(1).Infof("modify: %s", key)
}
if err = replicator.Replicate(key, m); err != nil {

2
weed/filesys/file.go

@ -101,7 +101,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
request := &filer_pb.UpdateEntryRequest{
Directory: file.dir.Path,
Entry: file.entry,
Entry: file.entry,
}
glog.V(1).Infof("set attr file entry: %v", request)

Loading…
Cancel
Save