public int getMetaReplicaIdFromZNode(String znode) {
    return znode.equals(metaZNodePrefix)
      ? RegionInfo.DEFAULT_REPLICA_ID
      : Integer.parseInt(znode.substring(metaZNodePrefix.length() + 1));
  }
Parse the meta replicaId from the passed znode
@param znode the name of the znode, does not include baseZNode
hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZNodePaths.java