HBASE-23848 Addendum fix TestSeekOptimizations (#1574)
This commit is contained in:
parent
4578533d3a
commit
24961c5c34
|
@ -218,10 +218,10 @@ public class TestSeekOptimizations {
|
||||||
scan.withStartRow(rowBytes(startRow));
|
scan.withStartRow(rowBytes(startRow));
|
||||||
|
|
||||||
// Adjust for the fact that for multi-row queries the end row is exclusive.
|
// Adjust for the fact that for multi-row queries the end row is exclusive.
|
||||||
{
|
if (startRow != endRow) {
|
||||||
final byte[] scannerStopRow =
|
scan.withStopRow(rowBytes(endRow + 1));
|
||||||
rowBytes(endRow + (startRow != endRow ? 1 : 0));
|
} else {
|
||||||
scan.withStopRow(scannerStopRow);
|
scan.withStopRow(rowBytes(endRow), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
final long initialSeekCount = StoreFileScanner.getSeekCount();
|
final long initialSeekCount = StoreFileScanner.getSeekCount();
|
||||||
|
|
Loading…
Reference in New Issue