listen for metadata updates

This commit is contained in:
chrislu
2022-02-14 01:09:31 -08:00
parent 7286e525ad
commit dbeeda8123
17 changed files with 499 additions and 40 deletions

View File

@@ -223,8 +223,6 @@ func (wfs *WFS) handleRenameResponse(ctx context.Context, resp *filer_pb.StreamR
wfs.inodeToPath.MovePath(oldPath, newPath)
// TODO change file handle
} else if resp.EventNotification.OldEntry != nil {
// without new entry, only old entry name exists. This is the second step to delete old entry
if err := wfs.metaCache.AtomicUpdateEntryFromFiler(ctx, util.NewFullPath(resp.Directory, resp.EventNotification.OldEntry.Name), nil); err != nil {