HBASE-10179. HRegionServer underreports readRequestCounts by 1 under certain conditions (Perry Trolard)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1551794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2013-12-18 01:29:21 +00:00
parent 3e84d6e6b1
commit 4fb0da7f84
1 changed files with 2 additions and 1 deletions

View File

@ -3135,7 +3135,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
int i = 0;
synchronized(scanner) {
for (; i < rows
&& currentScanResultSize < maxResultSize; i++) {
&& currentScanResultSize < maxResultSize; ) {
// Collect values to be returned here
boolean moreRows = scanner.nextRaw(values);
if (!values.isEmpty()) {
@ -3145,6 +3145,7 @@ public class HRegionServer implements ClientProtos.ClientService.BlockingInterfa
}
}
results.add(Result.create(values));
i++;
}
if (!moreRows) {
break;