HBASE-18904 Missing break in NEXT_ROW case of FilterList#mergeReturnCodeForOrOperator()

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Biju Nair 2017-09-29 16:55:54 -04:00 committed by zhangduo
parent 15eae6ac35
commit 1a5b3a3363
1 changed files with 2 additions and 0 deletions

View File

@ -566,6 +566,7 @@ final public class FilterList extends FilterBase {
if (isInReturnCodes(rc, ReturnCode.NEXT_ROW)) { if (isInReturnCodes(rc, ReturnCode.NEXT_ROW)) {
return ReturnCode.NEXT_ROW; return ReturnCode.NEXT_ROW;
} }
break;
case SEEK_NEXT_USING_HINT: case SEEK_NEXT_USING_HINT:
if (isInReturnCodes(rc, ReturnCode.INCLUDE, ReturnCode.INCLUDE_AND_NEXT_COL, if (isInReturnCodes(rc, ReturnCode.INCLUDE, ReturnCode.INCLUDE_AND_NEXT_COL,
ReturnCode.INCLUDE_AND_SEEK_NEXT_ROW)) { ReturnCode.INCLUDE_AND_SEEK_NEXT_ROW)) {
@ -577,6 +578,7 @@ final public class FilterList extends FilterBase {
if (isInReturnCodes(rc, ReturnCode.SEEK_NEXT_USING_HINT)) { if (isInReturnCodes(rc, ReturnCode.SEEK_NEXT_USING_HINT)) {
return ReturnCode.SEEK_NEXT_USING_HINT; return ReturnCode.SEEK_NEXT_USING_HINT;
} }
break;
} }
throw new IllegalStateException( throw new IllegalStateException(
"Received code is not valid. rc: " + rc + ", localRC: " + localRC); "Received code is not valid. rc: " + rc + ", localRC: " + localRC);