mirror of https://github.com/apache/cassandra
Make Memtable.getEntyIterator() respect the cfs iterator
Currently it assumes StorageSerive.getPartitioner(), which is not correct for 2i CFSs (LocalPartitioner)
This commit is contained in:
parent
cc1072473b
commit
65cd5801f5
|
|
@ -291,9 +291,9 @@ public class Memtable
|
|||
{
|
||||
return new Iterator<Map.Entry<DecoratedKey, AtomicSortedColumns>>()
|
||||
{
|
||||
private Iterator<Map.Entry<RowPosition, AtomicSortedColumns>> iter = stopAt.isMinimum()
|
||||
? rows.tailMap(startWith).entrySet().iterator()
|
||||
: rows.subMap(startWith, true, stopAt, true).entrySet().iterator();
|
||||
private Iterator<Map.Entry<RowPosition, AtomicSortedColumns>> iter = stopAt.isMinimum(cfs.partitioner)
|
||||
? rows.tailMap(startWith).entrySet().iterator()
|
||||
: rows.subMap(startWith, true, stopAt, true).entrySet().iterator();
|
||||
|
||||
public boolean hasNext()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue