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

Fix synchronization bug in repo indexer #3455

Merged
merged 3 commits into from
Feb 5, 2018

Conversation

ethantkoenig
Copy link
Member

Fixes a bug in the repo indexer code where local copies of repositories were accessed without the corresponding lock.

Since the repo indexer code only needs to read changes that have already been pushed, it doesn't need to access the local copies in the first place; it can just run commands against the bare repo directly.

@lafriks lafriks added this to the 1.4.0 milestone Feb 5, 2018
@lafriks
Copy link
Member

lafriks commented Feb 5, 2018

make fmt error

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 5, 2018
@ethantkoenig
Copy link
Member Author

@lafriks fixed

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 5, 2018
@codecov-io
Copy link

Codecov Report

Merging #3455 into master will decrease coverage by <.01%.
The diff coverage is 64.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3455      +/-   ##
==========================================
- Coverage   35.68%   35.67%   -0.01%     
==========================================
  Files         281      281              
  Lines       40662    40689      +27     
==========================================
+ Hits        14509    14516       +7     
- Misses      24013    24025      +12     
- Partials     2140     2148       +8
Impacted Files Coverage Δ
models/repo_indexer.go 47.43% <64.55%> (+0.52%) ⬆️
modules/sync/exclusive_pool.go 89.28% <0%> (-10.72%) ⬇️
models/repo.go 42.8% <0%> (-0.37%) ⬇️
models/repo_list.go 67.18% <0%> (+1.56%) ⬆️

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 17655cd...7d5ef8b. Read the comment docs.

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 5, 2018
@lafriks lafriks merged commit b16c84d into go-gitea:master Feb 5, 2018
@lafriks
Copy link
Member

lafriks commented Feb 5, 2018

@ethantkoenig please backport to release/v1.4 branch

@ethantkoenig ethantkoenig deleted the fix/repo_index branch February 5, 2018 17:40
@lafriks lafriks added the backport/done All backports for this PR have been created label Feb 5, 2018
@lafriks lafriks modified the milestones: 1.4.0, 1.5.0 Feb 5, 2018
ethantkoenig added a commit to ethantkoenig/gitea that referenced this pull request Feb 7, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants