hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1234903 - /hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java
Date Mon, 23 Jan 2012 17:07:46 GMT
Author: tedyu
Date: Mon Jan 23 17:07:45 2012
New Revision: 1234903

URL: http://svn.apache.org/viewvc?rev=1234903&view=rev
Log:
HBASE-5139 Addendum handles startRow being null for the case where median is in the first
region

Modified:
    hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java

Modified: hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java?rev=1234903&r1=1234902&r2=1234903&view=diff
==============================================================================
--- hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java
(original)
+++ hbase/trunk/src/main/java/org/apache/hadoop/hbase/client/coprocessor/AggregationClient.java
Mon Jan 23 17:07:45 2012
@@ -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) {



Mime
View raw message