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

Follow up for optimistic locking changes #20687 #20702

Closed
wolfs opened this issue May 9, 2022 · 0 comments · Fixed by #20966
Closed

Follow up for optimistic locking changes #20687 #20702

wolfs opened this issue May 9, 2022 · 0 comments · Fixed by #20966
Labels
in:virtual-file-system VFS, file system watching, snapshots
Milestone

Comments

@wolfs
Copy link
Member

wolfs commented May 9, 2022

There are some improvements we should do to wrap up the introduction of optimistic locking in the VFS done in #20687.

  • Ensure that everything necessary for snapshotting is done inside of VirtualFileSystem.store(). Currently, the calls to stat are outside of the store() call.
  • Inline VfsRootReference into AbstractVirtualFileSystem: VfsRootReference is only used for locking on all the mutable state in VirtualFileSystem and its subclasses, not only to guard access to the VFS root. Therefore, it should be inlined into AbstractVirtualFileSystem.

cc: @gradle/execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:virtual-file-system VFS, file system watching, snapshots
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant