You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by mi...@apache.org on 2019/10/10 09:22:15 UTC

[phoenix] branch 4.x-HBase-1.5 updated: PHOENIX-5493 Remove unnecesary iteration in BaseResultIterator

This is an automated email from the ASF dual-hosted git repository.

mihir6692 pushed a commit to branch 4.x-HBase-1.5
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x-HBase-1.5 by this push:
     new af39354  PHOENIX-5493 Remove unnecesary iteration in BaseResultIterator
af39354 is described below

commit af39354bef95bda66e937b0bcf2d2fac547a935b
Author: Aman Poonia <ap...@salesforce.com>
AuthorDate: Thu Oct 10 14:51:26 2019 +0530

    PHOENIX-5493 Remove unnecesary iteration in BaseResultIterator
---
 .../src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java b/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
index 8eeca26..45b4d4d 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/BaseResultIterators.java
@@ -777,6 +777,7 @@ public abstract class BaseResultIterators extends ExplainTable implements Result
             for (KeyRange range : ranges) {
                 if (!range.isSingleKey()) {
                     hasRange = true;
+                    break;
                 }
             }
             slotSpan[offset] = rangeSpan - 1;