Fix intersection with Bound computation

patch by wy96f; reviewed by slebresne for CASSANDRA-5551
This commit is contained in:
Sylvain Lebresne 2013-05-13 12:11:08 +02:00
parent d349787515
commit 2e2dd48ff9
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
* Add custom secondary index support to CQL3 (CASSANDRA-5484)
* Fix repair hanging silently on unexpected error (CASSANDRA-5229)
* Fix Ec2Snitch regression introduced by CASSANDRA-5171 (CASSANDRA-5432)
* Fix Bound intersection computation (CASSANDRA-5551)
Merged from 1.1
* Add retry mechanism to OTC for non-droppable_verbs (CASSANDRA-5393)
* Use allocator information to improve memtable memory usage estimate

View File

@ -136,7 +136,7 @@ public class Range<T extends RingPosition> extends AbstractBounds<T> implements
*/
public boolean intersects(Bounds<T> that)
{
return intersects(new Range<T>(that.left, that.right)) || contains(that.right);
return intersects(new Range<T>(that.left, that.right)) || contains(that.left);
}
public static <T extends RingPosition> Set<Range<T>> rangeSet(Range<T> ... ranges)