mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
7bb62b9f21
commit
402ab598b6
|
@ -52,11 +52,11 @@ func runFilerReplicate(cmd *Command, args []string) bool {
|
||||||
glog.Errorf("receive %s: %+v", key, err)
|
glog.Errorf("receive %s: %+v", key, err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if m.OldEntry!=nil&&m.NewEntry==nil{
|
if m.OldEntry != nil && m.NewEntry == nil {
|
||||||
glog.V(1).Infof("delete: %s", key)
|
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)
|
glog.V(1).Infof(" add: %s", key)
|
||||||
}else{
|
} else {
|
||||||
glog.V(1).Infof("modify: %s", key)
|
glog.V(1).Infof("modify: %s", key)
|
||||||
}
|
}
|
||||||
if err = replicator.Replicate(key, m); err != nil {
|
if err = replicator.Replicate(key, m); err != nil {
|
||||||
|
|
|
@ -101,7 +101,7 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
|
||||||
|
|
||||||
request := &filer_pb.UpdateEntryRequest{
|
request := &filer_pb.UpdateEntryRequest{
|
||||||
Directory: file.dir.Path,
|
Directory: file.dir.Path,
|
||||||
Entry: file.entry,
|
Entry: file.entry,
|
||||||
}
|
}
|
||||||
|
|
||||||
glog.V(1).Infof("set attr file entry: %v", request)
|
glog.V(1).Infof("set attr file entry: %v", request)
|
||||||
|
|
Loading…
Reference in a new issue