HBASE-18992 Comparators passed to the Memstore's flattened segments seems

to be wrong (Ram)
This commit is contained in:
Ramkrishna 2017-10-12 21:58:48 +05:30
parent 3cf3dfb65b
commit 5a26243a8a
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}