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));
// Adjust for the fact that for multi-row queries the end row is exclusive.
{
final byte[] scannerStopRow =
rowBytes(endRow + (startRow != endRow ? 1 : 0));
scan.withStopRow(scannerStopRow);
if (startRow != endRow) {
scan.withStopRow(rowBytes(endRow + 1));
} else {
scan.withStopRow(rowBytes(endRow), true);
}
final long initialSeekCount = StoreFileScanner.getSeekCount();