HBASE-5139 Addendum handles startRow being null for the case where median is in the first region
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1234903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e453c3c46d
commit
35a60f187d
|
@ -458,7 +458,7 @@ public class AggregationClient {
|
|||
// scan the region with median and find it
|
||||
Scan scan2 = new Scan(scan);
|
||||
// inherit stop row from method parameter
|
||||
scan2.setStartRow(startRow);
|
||||
if (startRow != null) scan2.setStartRow(startRow);
|
||||
HTable table = new HTable(conf, tableName);
|
||||
int cacheSize = scan2.getCaching();
|
||||
if (!scan2.getCacheBlocks() || scan2.getCaching() < 2) {
|
||||
|
|
Loading…
Reference in New Issue