HBASE-740 ThriftServer getting table names incorrectly

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@676024 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-07-11 16:41:51 +00:00
parent ffa8d836cd
commit e60a8373d5
2 changed files with 3 additions and 2 deletions

View File

@ -280,6 +280,7 @@ Trunk (unreleased changes)
(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

View File

@ -169,7 +169,7 @@ public class ThriftServer {
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 @@ public class ThriftServer {
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;