private static void updateTableState(Connection connection, TableState state) throws IOException {
    Put put = makePutFromTableState(state, EnvironmentEdgeManager.currentTime());
    putToMetaTable(connection, put);
    LOG.info("Updated {} in hbase:meta", state);
  }
Update state of the table in meta.
@param connection what we use for update
@param state      new state
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java