hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r676024 - in /hadoop/hbase/trunk: CHANGES.txt src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
Date Fri, 11 Jul 2008 16:41:51 GMT
Author: stack
Date: Fri Jul 11 09:41:51 2008
New Revision: 676024

URL: http://svn.apache.org/viewvc?rev=676024&view=rev
Log:
HBASE-740 ThriftServer getting table names incorrectly

Modified:
    hadoop/hbase/trunk/CHANGES.txt
    hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java

Modified: hadoop/hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/CHANGES.txt?rev=676024&r1=676023&r2=676024&view=diff
==============================================================================
--- hadoop/hbase/trunk/CHANGES.txt (original)
+++ hadoop/hbase/trunk/CHANGES.txt Fri Jul 11 09:41:51 2008
@@ -280,6 +280,7 @@
                (Jean-Daniel Cryans via Stack)
    HBASE-730   On startup, rinse STARTCODE and SERVER from .META.
                (Jean-Daniel Cryans via Stack)
+   HBASE-740   ThriftServer getting table names incorrectly (Tim Sell via Stack)
 
   NEW FEATURES
    HBASE-47    Option to set TTL for columns in hbase

Modified: hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java?rev=676024&r1=676023&r2=676024&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java (original)
+++ hadoop/hbase/trunk/src/java/org/apache/hadoop/hbase/thrift/ThriftServer.java Fri Jul 11
09:41:51 2008
@@ -169,7 +169,7 @@
         HTableDescriptor[] tables = this.admin.listTables();
         ArrayList<byte[]> list = new ArrayList<byte[]>(tables.length);
         for (int i = 0; i < tables.length; i++) {
-          list.add(tables[i].getName().toString().getBytes());
+          list.add(tables[i].getName());
         }
         return list;
       } catch (IOException e) {
@@ -186,7 +186,7 @@
         ArrayList<RegionDescriptor> regions = new ArrayList<RegionDescriptor>();
         for (int i = 0; i < startKeys.length; i++) {
           RegionDescriptor region = new RegionDescriptor();
-          region.startKey = startKeys[i].toString().getBytes();
+          region.startKey = startKeys[i];
           regions.add(region);
         }
         return regions;



Mime
View raw message