HBASE-18992 Comparators passed to the Memstore's flattened segments seems
to be wrong (Ram)
This commit is contained in:
parent
138a7392e3
commit
e7b4f6046a
|
@ -125,7 +125,7 @@ public class CellArrayImmutableSegment extends ImmutableSegment {
|
|||
segmentScanner.close();
|
||||
}
|
||||
// build the immutable CellSet
|
||||
CellArrayMap cam = new CellArrayMap(CellComparator.COMPARATOR, cells, 0, idx, false);
|
||||
CellArrayMap cam = new CellArrayMap(getComparator(), cells, 0, idx, false);
|
||||
this.setCellSet(oldCellSet, new CellSet(cam)); // update the CellSet of this Segment
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ public class CellChunkImmutableSegment extends ImmutableSegment {
|
|||
}
|
||||
// build the immutable CellSet
|
||||
CellChunkMap ccm =
|
||||
new CellChunkMap(CellComparator.COMPARATOR,chunks,0,numOfCellsAfterCompaction,false);
|
||||
new CellChunkMap(getComparator(), chunks, 0, numOfCellsAfterCompaction, false);
|
||||
this.setCellSet(null, new CellSet(ccm)); // update the CellSet of this Segment
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ public class CellChunkImmutableSegment extends ImmutableSegment {
|
|||
segmentScanner.close();
|
||||
}
|
||||
|
||||
CellChunkMap ccm = new CellChunkMap(CellComparator.COMPARATOR,chunks,0,numOfCells,false);
|
||||
CellChunkMap ccm = new CellChunkMap(getComparator(), chunks, 0, numOfCells, false);
|
||||
this.setCellSet(oldCellSet, new CellSet(ccm)); // update the CellSet of this Segment
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue