This commit is contained in:
Chris Lu 2018-09-22 00:12:10 -07:00
parent 7bb62b9f21
commit 402ab598b6
2 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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)