|
@ -24,13 +24,17 @@ func (f *Filer) onBucketEvents(event *filer_pb.SubscribeMetadataResponse) { |
|
|
} |
|
|
} |
|
|
if f.DirBucketsPath == event.Directory { |
|
|
if f.DirBucketsPath == event.Directory { |
|
|
if message.OldEntry == nil && message.NewEntry != nil { |
|
|
if message.OldEntry == nil && message.NewEntry != nil { |
|
|
|
|
|
if message.NewEntry.IsDirectory { |
|
|
f.Store.OnBucketCreation(message.NewEntry.Name) |
|
|
f.Store.OnBucketCreation(message.NewEntry.Name) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
if message.OldEntry != nil && message.NewEntry == nil { |
|
|
if message.OldEntry != nil && message.NewEntry == nil { |
|
|
|
|
|
if message.OldEntry.IsDirectory { |
|
|
f.Store.OnBucketDeletion(message.OldEntry.Name) |
|
|
f.Store.OnBucketDeletion(message.OldEntry.Name) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
func (f *Filer) maybeReloadFilerConfiguration(event *filer_pb.SubscribeMetadataResponse) { |
|
|
func (f *Filer) maybeReloadFilerConfiguration(event *filer_pb.SubscribeMetadataResponse) { |
|
|
if DirectoryEtcSeaweedFS != event.Directory { |
|
|
if DirectoryEtcSeaweedFS != event.Directory { |
|
|