Skip to content

Fix: git-storage-backend could try to commit several commits at once#350

Merged
TrueBrain merged 1 commit intomainfrom
fix-git-locking
Aug 1, 2022
Merged

Fix: git-storage-backend could try to commit several commits at once#350
TrueBrain merged 1 commit intomainfrom
fix-git-locking

Conversation

@TrueBrain
Copy link
Copy Markdown
Owner

There was an attempt to prevent that, but sadly, an Event was
used instead of a Lock. This meant that when the first commit
returned, all other pending were going through after that, instead
of one by one.

Lock is fair, as in, the first to acquire is the first to be released.

There was an attempt to prevent that, but sadly, an Event was
used instead of a Lock. This meant that when the first commit
returned, all other pending were going through after that, instead
of one by one.

Lock is fair, as in, the first to acquire is the first to be released.
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #350 (5ce84c0) into main (2630741) will decrease coverage by 0.03%.
The diff coverage is 20.00%.

@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
- Coverage   80.53%   80.49%   -0.04%     
==========================================
  Files          51       51              
  Lines        2682     2682              
  Branches      436      436              
==========================================
- Hits         2160     2159       -1     
- Misses        427      428       +1     
  Partials       95       95              
Impacted Files Coverage Δ
truewiki/storage/github.py 41.30% <0.00%> (-0.46%) ⬇️
truewiki/storage/gitlab.py 59.32% <0.00%> (-1.03%) ⬇️
truewiki/storage/git.py 33.64% <33.33%> (-0.31%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2630741...5ce84c0. Read the comment docs.

@TrueBrain TrueBrain merged commit 975b7c4 into main Aug 1, 2022
@TrueBrain TrueBrain deleted the fix-git-locking branch August 1, 2022 13:41
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.

2 participants