Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

adjust metadata tail output

Chris Lua814f3f0a80a
diff --git a/weed/command/filer_meta_tail.go b/weed/command/filer_meta_tail.go
index 85a3eaf840..cff39fe494 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
}