Revert "HBASE-26688 Threads shared EMPTY_RESULT may lead to unexpected client job down. (#4048)"
This reverts commit 087bb1342a
.
This commit is contained in:
parent
d8085b43fc
commit
0ca2307b77
|
@ -913,19 +913,16 @@ public class Result implements CellScannable, 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;
|
||||
|
|
Loading…
Reference in New Issue