def METHOD_NAME(conn):
    # Do not implement `get_all_vars()`, just fetch the ones we need for this check.
    # Without the GLOBAL modifier, SHOW VARIABLES displays the values that are used for
    # the current connection to MariaDB.
    sql = """
        show global variables
        where variable_name like 'open_files_limit'
            or variable_name like 'table_open_cache'
            ;
          """
    return lib.base.coe(lib.db_mysql.select(conn, sql))