Check for context exceeded in WalkGitLog #17319

Merged
lunny merged 1 commits from fix-17314-context-deadline-exceeded into main 2021-10-15 18:41:34 +00:00
Contributor

There is a slight race in checking of a context deadline exceed in #16467
which leads to a 500 on the repository page.

The solution is to check the error coming back from *LogNameStatusRepoParser.Next()
and if it is the ContextDeadlineExceeded break from the loop.

Fix #17314
Regression #16467

Signed-off-by: Andrew Thornton art27@cantab.net

There is a slight race in checking of a context deadline exceed in #16467 which leads to a 500 on the repository page. The solution is to check the error coming back from `*LogNameStatusRepoParser.Next()` and if it is the `ContextDeadlineExceeded` break from the loop. Fix #17314 Regression #16467 Signed-off-by: Andrew Thornton <art27@cantab.net>
wxiaoguang approved these changes 2021-10-15 17:03:30 +00:00
jolheiser approved these changes 2021-10-15 18:35:42 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17319
No description provided.