mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-30 17:00:48 +01:00
filer subscribe: handle rename subscription
This commit is contained in:
1 parent
eed87791b7
commit
ac22f1dd26
1 file changed
+8
-1
@@ -153,7 +153,14 @@ func (fs *FilerServer) eachEventNotificationFn(req *filer_pb.SubscribeMetadataRe
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(fullpath, req.PathPrefix) {
|
||||
return nil
|
||||
if eventNotification.NewParentPath != "" {
|
||||
newFullPath := util.Join(eventNotification.NewParentPath, entryName)
|
||||
if !strings.HasPrefix(newFullPath, req.PathPrefix) {
|
||||
return nil
|
||||
}
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
message := &filer_pb.SubscribeMetadataResponse{
|
||||
|
||||
Reference in new issue
Block a user