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

Ensure that indexes are retained across reloads #407

Merged
merged 5 commits into from Jun 21, 2014

Conversation

eric
Copy link
Contributor

@eric eric commented Jun 19, 2014

The service/equiv? check for a wrapped index currently tries to compare the underlying index with a wrapped index and fails, causing the index to be swapped out.

This pull request introduces a WrappedIndex protocol to allow a wrapped index to have access to the underlying index of another.

I wasn't really clear what the idiomatic way to solve this was, so I just took a shot. Please let me know if there's a cleaner way to do this.

This fixes #405.

@eric
Copy link
Contributor Author

eric commented Jun 21, 2014

I believe this is ready to be merged.

aphyr added a commit that referenced this pull request Jun 21, 2014
Ensure that indexes are retained across reloads
@aphyr aphyr merged commit 11f8110 into riemann:master Jun 21, 2014
@eric eric deleted the service-equiv-for-wrapped-indexes branch June 21, 2014 00:39
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.

Index not being preserved across reloads
2 participants