From 01b7aa79fa941cff0c83487da07a658be4bca377 Mon Sep 17 00:00:00 2001 From: zzq09494 Date: Thu, 28 Jul 2022 12:04:37 +0800 Subject: [PATCH] fix: Buckets are not created and deleted correctly on the filer with the same signature when they are created and deleted --- weed/filer/filer_on_meta_event.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/weed/filer/filer_on_meta_event.go b/weed/filer/filer_on_meta_event.go index 3b290deca..79176821f 100644 --- a/weed/filer/filer_on_meta_event.go +++ b/weed/filer/filer_on_meta_event.go @@ -16,11 +16,7 @@ func (f *Filer) onMetadataChangeEvent(event *filer_pb.SubscribeMetadataResponse) func (f *Filer) onBucketEvents(event *filer_pb.SubscribeMetadataResponse) { message := event.EventNotification - for _, sig := range message.Signatures { - if sig == f.Signature { - return - } - } + if f.DirBucketsPath == event.Directory { if filer_pb.IsCreate(event) { if message.NewEntry.IsDirectory {