Browse Source

adjust metadata tail output

pull/2348/head
Chris Lu 3 years ago
parent
commit
a814f3f0a8
  1. 6
      weed/command/filer_meta_tail.go

6
weed/command/filer_meta_tail.go

@ -71,12 +71,12 @@ func runFilerMetaTail(cmd *Command, args []string) bool {
} }
shouldPrint := func(resp *filer_pb.SubscribeMetadataResponse) bool { shouldPrint := func(resp *filer_pb.SubscribeMetadataResponse) bool {
if filterFunc == nil {
return true
}
if resp.EventNotification.OldEntry == nil && resp.EventNotification.NewEntry == nil { if resp.EventNotification.OldEntry == nil && resp.EventNotification.NewEntry == nil {
return false return false
} }
if filterFunc == nil {
return true
}
if resp.EventNotification.OldEntry != nil && filterFunc(resp.Directory, resp.EventNotification.OldEntry.Name) { if resp.EventNotification.OldEntry != nil && filterFunc(resp.Directory, resp.EventNotification.OldEntry.Name) {
return true return true
} }

Loading…
Cancel
Save