fixed a race where solution cralwer used wrong solution for it to pro… (#31291)
* fixed a race where solution cralwer used wrong solution for it to process.
race is this.
1. solution crawler picked up a solution
2. before processing the solution, workitem got changed
3. and then picked up an work item from the queue
4. and use the work item with the solution that got picked up in step 1
step 2 is happening beacuse solution has changed, but step 4 used old solution from step 1
that doesn't have effects of the solution changes.
solution crawler must pick up solution after it has picked up work item from the queue so that new changes of a solution get enqueued as new work item,
* Update src/Features/Core/Portable/SolutionCrawler/WorkCoordinator.NormalPriorityProcessor.cs
thank you
Co-Authored-By: Nheejaechang <hechang@microsoft.com>
* addressing feedback
Showing
想要评论请 注册 或 登录