Skip to content

Avoid taking a lock for reading (#1388) #1391

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

Merged
merged 2 commits into from
Jan 7, 2022
Merged

Avoid taking a lock for reading (#1388) #1391

merged 2 commits into from
Jan 7, 2022

Conversation

Byron
Copy link
Member

@Byron Byron commented Jan 7, 2022

This isn't needed as git will replace this file atomicially,
hence we always see a fully written file when reading.

Only when writing we need to obtain a lock.

Fixes #1388

@Byron Byron force-pushed the index-no-read-lock branch from 63104d6 to 774e404 Compare January 7, 2022 01:01
This isn't needed as git will replace this file atomicially,
hence we always see a fully written file when reading.

Only when writing we need to obtain a lock.
@Byron Byron force-pushed the index-no-read-lock branch from 774e404 to 636da6e Compare January 7, 2022 01:02
With each patch level it may bring up new issues that cause CI failure
for without being related to the actual change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Inspecting the index during a pre-commit is empty
1 participant