HBASE-23848 Addendum fix TestSeekOptimizations (#1574)

This commit is contained in:
Duo Zhang 2020-04-24 19:50:30 +08:00 committed by GitHub
parent 4578533d3a
commit 24961c5c34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

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