mirror of https://github.com/apache/cassandra
Fix intersection with Bound computation
patch by wy96f; reviewed by slebresne for CASSANDRA-5551
This commit is contained in:
parent
d349787515
commit
2e2dd48ff9
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue