also writes to local meta cache

before waiting for subscribed meta events
This commit is contained in:
Chris Lu
2020-04-22 15:40:47 -07:00
parent 1a34fd0b44
commit 5d0e1d8d74
4 changed files with 37 additions and 0 deletions

View File

@@ -279,6 +279,10 @@ func (file *File) saveEntry() error {
return fuse.EIO
}
if file.wfs.option.AsyncMetaDataCaching {
file.wfs.metaCache.UpdateEntry(context.Background(), filer2.FromPbEntry(request.Directory, request.Entry))
}
return nil
})
}