Skip to content

[Fixes #11183] Race condition in RouteBase.EnsureLoggers #11218

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
Jun 14, 2019

Conversation

javiercn
Copy link
Member

@javiercn javiercn commented Jun 14, 2019

Reorders lines to prevent race condition
#11183

@javiercn javiercn requested review from pranavkm and removed request for analogrelay, Tratcher and jkotalik June 14, 2019 10:25
@javiercn javiercn changed the title [Fixes #1183] Race condition in RouteBase.EnsureLoggers [Fixes #11183] Race condition in RouteBase.EnsureLoggers Jun 14, 2019
@analogrelay analogrelay added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jun 14, 2019
@davidfowl
Copy link
Member

Please add a comment.

@javiercn javiercn force-pushed the javiercn/routing-1183 branch from bc8482c to 6150b66 Compare June 14, 2019 16:40
@javiercn
Copy link
Member Author

or use LazyInitializer with a valuetuple.

Updated to use a lock, I wasn't sure how to accomplish that with LazyInitializer. Maybe I'm missing something. The alternative would have been to put each initialization inside LazyInitializer calls, which I imagine would have prevented reordering and have done the trick.

@javiercn javiercn force-pushed the javiercn/routing-1183 branch from 6150b66 to e9bee6e Compare June 14, 2019 16:48
@javiercn javiercn merged commit f652c22 into master Jun 14, 2019
@ghost ghost deleted the javiercn/routing-1183 branch June 14, 2019 22:54
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants