Skip to content
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

Fix for compound index selection. #185

Merged
merged 1 commit into from
May 2, 2019

Conversation

apkar
Copy link
Contributor

@apkar apkar commented May 2, 2019

Doc Layer maintains indexes with two level map. The first level to identify simple indexes and second level for compound indexes. Set that maintains the compound indexes with the same prefix are has the wrong comparator that matches the indexes of the same size. This patch fixes the comparator.

Thankfully this structure is not used in the write path, otherwise, we will have to rebuild the indexes.

@apkar apkar requested a review from ajbeamon May 2, 2019 19:31
@apkar apkar force-pushed the index-selection branch from 81fc289 to 9fc5d0d Compare May 2, 2019 19:33
@ajbeamon
Copy link
Contributor

ajbeamon commented May 2, 2019

This looks good to me, assuming index names are unique.

@apkar
Copy link
Contributor Author

apkar commented May 2, 2019

This looks good to me, assuming index names are unique.

Yeah, that is taken care by the create index code. It makes sure that there are no two indexes with the same name.

@apkar apkar merged commit 9274af6 into FoundationDB:master May 2, 2019
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