Skip to content

Commit

Permalink
Revert "HBASE-26688 Threads shared EMPTY_RESULT may lead to unexpecte…
Browse files Browse the repository at this point in the history
…d client job down. (#4048)"

This reverts commit 087bb13.
  • Loading branch information
Apache9 committed Jan 26, 2022
1 parent d8085b4 commit 0ca2307
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -913,19 +913,16 @@ public CellScanner cellScanner() {

@Override
public Cell current() {
if (isEmpty()
if (cells == null
|| cellScannerIndex == INITIAL_CELLSCANNER_INDEX
|| cellScannerIndex >= cells.length) {
|| cellScannerIndex >= cells.length)
return null;
}
return this.cells[cellScannerIndex];
}

@Override
public boolean advance() {
if (isEmpty()) {
return false;
}
if (cells == null) return false;
cellScannerIndex++;
if (cellScannerIndex < this.cells.length) {
return true;
Expand Down

0 comments on commit 0ca2307

Please sign in to comment.