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:
parent
f034a249f2
commit
327edc6b1d
|
@ -2648,7 +2648,7 @@ MasterServices, Server {
|
||||||
Collection<HTableDescriptor> descriptors = this.tableDescriptors.getAll().values();
|
Collection<HTableDescriptor> descriptors = this.tableDescriptors.getAll().values();
|
||||||
GetTableNamesResponse.Builder builder = GetTableNamesResponse.newBuilder();
|
GetTableNamesResponse.Builder builder = GetTableNamesResponse.newBuilder();
|
||||||
for (HTableDescriptor descriptor: descriptors) {
|
for (HTableDescriptor descriptor: descriptors) {
|
||||||
if (descriptor.isMetaTable()) {
|
if (descriptor.getTableName().isSystemTable()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
builder.addTableNames(ProtobufUtil.toProtoTableName(descriptor.getTableName()));
|
builder.addTableNames(ProtobufUtil.toProtoTableName(descriptor.getTableName()));
|
||||||
|
|
Loading…
Reference in New Issue