You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules/migrations
zeripath c58bc4bf80
Prevent timer leaks in Workerpool and others (#11333)
There is a potential memory leak in `Workerpool` due to the intricacies of
`time.Timer` stopping.

Whenever a `time.Timer` is `Stop`ped its channel must be cleared using a
`select` if the result of the `Stop()` is `false`.

Unfortunately in `Workerpool` these were checked the wrong way round.

However, there were a few other places that were not being checked.

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
..
base When migrating from Gitlab map Approvals to approving Reviews (#11147) 4 years ago
error.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
git.go Migrate reviews when migrating repository from github (#9463) 4 years ago
gitea.go [BugFix] remove nil inserts in models (#11096) 4 years ago
gitea_test.go API add/generalize pagination (#9452) 4 years ago
github.go Prevent timer leaks in Workerpool and others (#11333) 4 years ago
github_test.go Migrate reviews when migrating repository from github (#9463) 4 years ago
gitlab.go When migrating from Gitlab map Approvals to approving Reviews (#11147) 4 years ago
gitlab_test.go When migrating from Gitlab map Approvals to approving Reviews (#11147) 4 years ago
main_test.go Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
migrate.go When migrating from Gitlab map Approvals to approving Reviews (#11147) 4 years ago
update.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago