Merge pull request #3374 from famosss/fixcreatebucket

fix: Buckets are not created and deleted correctly on the filer with …
This commit is contained in:
Chris Lu 2022-07-27 22:37:18 -07:00 committed by GitHub
commit 32d0413be1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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