Repository: hbase Updated Branches: refs/heads/branch-2.0 81f69e585 -> d77989e9f
HBASE-20527 Remove unused code in MetaTableAccessor Signed-off-by: Chia-Ping Tsai <chia7...@gmail.com> Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d77989e9 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d77989e9 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d77989e9 Branch: refs/heads/branch-2.0 Commit: d77989e9f7b51f058d09694e5109e3aec05e0596 Parents: 81f69e5 Author: Mingdao Yang <mingd...@gmail.com> Authored: Sat May 5 22:26:12 2018 +0800 Committer: Chia-Ping Tsai <chia7...@gmail.com> Committed: Sat May 5 22:27:27 2018 +0800 ---------------------------------------------------------------------- .../java/org/apache/hadoop/hbase/MetaTableAccessor.java | 10 ---------- 1 file changed, 10 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/d77989e9/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java index d6bbf53..1880a0d 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java @@ -137,16 +137,6 @@ public class MetaTableAccessor { private static final Logger LOG = LoggerFactory.getLogger(MetaTableAccessor.class); private static final Logger METALOG = LoggerFactory.getLogger("org.apache.hadoop.hbase.META"); - static final byte [] META_REGION_PREFIX; - static { - // Copy the prefix from FIRST_META_REGIONINFO into META_REGION_PREFIX. - // FIRST_META_REGIONINFO == 'hbase:meta,,1'. META_REGION_PREFIX == 'hbase:meta,' - int len = RegionInfoBuilder.FIRST_META_REGIONINFO.getRegionName().length - 2; - META_REGION_PREFIX = new byte [len]; - System.arraycopy(RegionInfoBuilder.FIRST_META_REGIONINFO.getRegionName(), 0, - META_REGION_PREFIX, 0, len); - } - /** * Lists all of the table regions currently in META. * Deprecated, keep there until some test use this.