Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Refactor index ranges handling #1510

Merged
merged 3 commits into from Jul 7, 2015
Merged

Refactor index ranges handling #1510

merged 3 commits into from Jul 7, 2015

Conversation

joschi
Copy link
Contributor

@joschi joschi commented Jun 30, 2015

Small changes related to Graylog2/graylog2-server#1274.

@joschi joschi added this to the 1.2.0 milestone Jun 30, 2015
@@ -337,11 +337,11 @@ protected String determineHistogramResolution(final SearchResult searchResult) {
Collections.sort(usedIndices, new Comparator<IndexRangeSummary>() {
@Override
public int compare(IndexRangeSummary o1, IndexRangeSummary o2) {
return o1.start().compareTo(o2.start());
return o1.begin().compareTo(o2.begin());
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kroepke Are you sure this is correct and what you want? The "start()" method maps to the "end()" method of the new index range class.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, you're right, this should be end() instead due to the funny naming confusion.

@bernd bernd self-assigned this Jul 7, 2015
bernd added a commit that referenced this pull request Jul 7, 2015
@bernd bernd merged commit 057197a into master Jul 7, 2015
@bernd bernd deleted the index-ranges-refactoring branch July 7, 2015 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants