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:
Zhihong Yu 2012-01-23 17:07:45 +00:00
parent e453c3c46d
commit 35a60f187d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {