hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ramkrishna.s.vasudevan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15253) Small bug in CellUtil.matchingRow(Cell, byte[])
Date Thu, 11 Feb 2016 06:12:18 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15142296#comment-15142296
] 

ramkrishna.s.vasudevan commented on HBASE-15253:
------------------------------------------------

bq.Ideally we will never call it with null 'buf'..
Yes ideally.

> Small bug in CellUtil.matchingRow(Cell, byte[])
> -----------------------------------------------
>
>                 Key: HBASE-15253
>                 URL: https://issues.apache.org/jira/browse/HBASE-15253
>             Project: HBase
>          Issue Type: Bug
>            Reporter: ramkrishna.s.vasudevan
>            Assignee: ramkrishna.s.vasudevan
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> {code}
>   public static boolean matchingRow(final Cell left, final byte[] buf) {
>     if (buf == null) {
>       return left.getQualifierLength() == 0;
>     }
>     return matchingRow(left, buf, 0, buf.length);
>   }
> {code}
> The 'if' condition should check for left.getRowLength() == 0.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message