diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-25 01:04:51 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-25 01:04:51 -0700 |
| commit | a814f3f0a80ac511132bd3ac97356f333f128b1c (patch) | |
| tree | 63513fb6ea720ebfc7257408cdb88c3a774c414e | |
| parent | 52fe86df4517c285014cb9f652126f2cc0eca130 (diff) | |
| download | seaweedfs-a814f3f0a80ac511132bd3ac97356f333f128b1c.tar.xz seaweedfs-a814f3f0a80ac511132bd3ac97356f333f128b1c.zip | |
adjust metadata tail output
| -rw-r--r-- | weed/command/filer_meta_tail.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.go index 85a3eaf84..cff39fe49 100644 --- a/weed/command/filer_meta_tail.go +++ b/weed/command/filer_meta_tail.go @@ -71,12 +71,12 @@ func runFilerMetaTail(cmd *Command, args []string) bool { } shouldPrint := func(resp *filer_pb.SubscribeMetadataResponse) bool { - if filterFunc == nil { - return true - } if resp.EventNotification.OldEntry == nil && resp.EventNotification.NewEntry == nil { return false } + if filterFunc == nil { + return true + } if resp.EventNotification.OldEntry != nil && filterFunc(resp.Directory, resp.EventNotification.OldEntry.Name) { return true } |
