Skip to content

[Database] For ReadTransaction::getProviderFileCodeReferences() make sure to filter the units properly #23

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 1 commit into from
May 1, 2019

Conversation

akyrtzi
Copy link
Contributor

@akyrtzi akyrtzi commented May 1, 2019

Previously it was returning the unit with the most recent modification time, and if that unit was filtered-out by SymbolIndexImpl::createProviderForCode()
then the whole provider would be ignored, which is incorrect because there could be other units for the same provider that are eligible.

This change moves the filtering into the ReadTransaction's call.

…sure to filter the units properly

Previously it was returning the unit with the most recent modification time, and if that unit was filtered-out by SymbolIndexImpl::createProviderForCode()
then the whole provider would be ignored, which is incorrect because there could be other units for the same provider that are eligible.

This change moves the filtering into the `ReadTransaction`'s call.
@akyrtzi akyrtzi requested a review from benlangmuir as a code owner May 1, 2019 19:59
@akyrtzi
Copy link
Contributor Author

akyrtzi commented May 1, 2019

@swift-ci Please test

@akyrtzi akyrtzi merged commit 888b53c into swiftlang:master May 1, 2019
@akyrtzi akyrtzi deleted the fix-unit-filtering branch May 1, 2019 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants