public static void putsToMetaTable(final Connection connection, final List<Put> ps)
    throws IOException {
    if (ps.isEmpty()) {
      return;
    }
    try (Table t = getMetaHTable(connection)) {
      debugLogMutations(ps);
      // the implementation for putting a single Put is much simpler so here we do a check first.
      if (ps.size() == 1) {
        t.put(ps.get(0));
      } else {
        t.put(ps);
      }
    }
  }
Put the passed <code>ps</code> to the <code>hbase:meta</code> table.
@param connection connection we're using
@param ps         Put to add to hbase:meta
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java