HBASE-9276 List tables API should filter with isSystemTable

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1516043 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-08-21 00:42:16 +00:00
parent f034a249f2
commit 327edc6b1d
1 changed files with 1 additions and 1 deletions

View File

@ -2648,7 +2648,7 @@ MasterServices, Server {
Collection<HTableDescriptor> descriptors = this.tableDescriptors.getAll().values();
GetTableNamesResponse.Builder builder = GetTableNamesResponse.newBuilder();
for (HTableDescriptor descriptor: descriptors) {
if (descriptor.isMetaTable()) {
if (descriptor.getTableName().isSystemTable()) {
continue;
}
builder.addTableNames(ProtobufUtil.toProtoTableName(descriptor.getTableName()));