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:
Aleksey Yeschenko 2013-08-25 00:22:23 +03:00
parent cc1072473b
commit 65cd5801f5
1 changed files with 3 additions and 3 deletions

View File

@ -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()
{