Backport #5551 to 1.1

This commit is contained in:
Sylvain Lebresne 2013-05-13 16:31:22 +02:00
parent ce8bc33d43
commit c5dc0292e0
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
* Use allocator information to improve memtable memory usage estimate
(CASSANDRA-5497)
* fsync leveled manifest to avoid corruption (CASSANDRA-5535)
* Fix Bound intersection computation (CASSANDRA-5551)
1.1.11
* Fix trying to load deleted row into row cache on startup (CASSANDRA-4463)

View File

@ -137,7 +137,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)