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

Resolves #138: Cache should always include collection context with indexes #139

Merged
merged 2 commits into from
Apr 4, 2019

Conversation

apkar
Copy link
Contributor

@apkar apkar commented Apr 4, 2019

getUnboundCollectionContext() should always return context with indexes included. As this function plays with cache, its good to not play with how it creates collection context. Instead, the client of this function can make a copy and do anything with it. Otherwise, we will find interesting inconsistencies in the metadata cache.

@apkar apkar requested a review from dongxinEric April 4, 2019 20:51
…ays include indexes.

getUnboundCollectionContext() should always return context with indexes
included.

As this function plays with cache, its good to not play with how it
creates collection context. Instead client of this function can make a
copy and do anything with it. Otherwise, we will find interesting
inconsistencies in the metadata cache.
Copy link
Contributor

@dongxinEric dongxinEric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@apkar apkar merged commit 5f5c290 into FoundationDB:master Apr 4, 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