Skip to content

Commit 5586417

Browse files
committed
refactor code
1 parent ef2f4bc commit 5586417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/alipay/oceanbase/hbase/OHTable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,12 @@ private void getMaxRowFromResult(AbstractQueryStreamResult clientQueryStreamResu
813813
byte[][] familyAndQualifier = new byte[2][];
814814
KeyValue kv = null;
815815
while (clientQueryStreamResult.next()) {
816-
List<ObObj> row = clientQueryStreamResult.getRow();
817816
if (checkExistenceOnly) {
818817
// Currently, checkExistOnly is set, and if the row exists, it returns an empty row.
819818
keyValueList.add(new KeyValue());
820819
return;
821820
} else {
821+
List<ObObj> row = clientQueryStreamResult.getRow();
822822
if (kv == null
823823
|| compareByteArray(kv.getRow(), (byte[]) row.get(0).getValue()) <= 0) {
824824
if (kv != null

0 commit comments

Comments
 (0)