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

Add process/file lock to gvfs-helper prefetch #230

Open
jeffhostetler opened this issue Dec 23, 2019 · 0 comments
Open

Add process/file lock to gvfs-helper prefetch #230

jeffhostetler opened this issue Dec 23, 2019 · 0 comments
Assignees

Comments

@jeffhostetler
Copy link

As an optimization we could add a file lock to gvfs-helper prefetch to make
concurrent prefetches operate serially.

Ideally, multiple prefetches on a single repo would be hitting the same cache-server
(or origin server) and by default only ask for packs newer than the most recent one
in the shared-cache. So both processes would probably always receive the same
set of pack and waste network bandwidth, since the loser of the race will just discard
their copy of the packs.

A file lock could be added to avoid this.

This is probably only important for the highly-concurrent GVFS test suite.
Normal users are probably unlikely to run concurrent git fetch commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant