-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
wrong logic of interval.Range.Equal method #16079
Milestone
Comments
@dt just noticed this recently too. This method is unused and we should just delete it. |
yaojingguo
added a commit
to yaojingguo/cockroach
that referenced
this issue
May 26, 2017
1. Implement Iterator method for btree and add tests. 2. Restore Range.Equal method and fix the wrong logic of Range.Equal. The existing Equal method considers Range A and Range B to be equal if A's Start is equal to B's End and A's End is equal to B's Start. The correct logic is to consider Range A and Range B to be equal if A's Start is equal to B's Start and A's End is equal to B's End. See cockroachdb#16079. 3. Add complile time checks to ensure that btree and llrbTree implement the Tree interface. 4. s/llbrNode/llrbNode/g and s/llbrTree/llrbTree/g. 5. Move comment from llrbTree to Tree.
yaojingguo
added a commit
to yaojingguo/cockroach
that referenced
this issue
May 27, 2017
1. Implement Iterator method for btree and add tests. 2. Restore Range.Equal method and fix the wrong logic of Range.Equal. The existing Equal method considers Range A and Range B to be equal if A's Start is equal to B's End and A's End is equal to B's Start. The correct logic is to consider Range A and Range B to be equal if A's Start is equal to B's Start and A's End is equal to B's End. See cockroachdb#16079. 3. Add complile time checks to ensure that btree and llrbTree implement the Tree interface. 4. s/llbrNode/llrbNode/g and s/llbrTree/llrbTree/g. 5. Move comment from llrbTree to Tree.
Looks like this got fixed in #8867 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The existing Equal method considers Range A and Range B to be equal if
A's Start is equal to B's End and A's End is equal to B's Start. The
correct logic is to consider Range A and Range B to be equal if A's Start
is equal to B's Start and A's End is equal to B's End.
The text was updated successfully, but these errors were encountered: