Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalidate cache fo open files #537

Merged
merged 4 commits into from
Jun 21, 2021
Merged

invalidate cache fo open files #537

merged 4 commits into from
Jun 21, 2021

Conversation

davies
Copy link
Contributor

@davies davies commented Jun 19, 2021

  1. Invadate the cached attribute for open files after some fields changed.

  2. When the cached mtime is updated by GetAttr(), future Open() will assume the mtime is consistent with page cache, but not, so we should mark the cached attribute so that future Open() will not keep the cache.

  3. When a file is compacted by other clients, the chunk was deleted, so we should invalidate the chunk cache after a temporary read failure.

@davies davies requested a review from SandyXSD June 19, 2021 14:09
@davies davies merged commit d89858d into main Jun 21, 2021
@davies davies deleted the fix_open_cache branch June 21, 2021 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants