Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: Remove race condition in split query (#21301)
Resolves #21296 Issue: `TaskAwaiter(new Task[] { PopulateSplitCollectionInclude(), PopulateSplitCollectionInclude() })` rather than creating task array and passing to method it also started executing them causing threading issue. Fix: `TaskAwaiter(new Func<Task>[] { () => PopulateSplitCollectionInclude(), () => PopulateSplitCollectionInclude() })` creates the actual task only when we are ready to await them.
- Loading branch information