• unknown's avatar
    BUG#21915: Changing limits of table_cache when setting max_connections · 885dc1cb
    unknown authored
    If the user has specified --max-connections=N or --table-open-cache=M
    options to the server, a warning could be given that some values were
    recalculated, and table-open-cache could be assigned greater value.
    
    Note that both warning and increase of table-open-cache were totally
    harmless.
    
    This patch fixes recalculation code to ensure that table-open-cache will
    be never increased automatically and that a warning will be given only if
    some values had to be decreased due to operating system limits.
    
    No test case is provided because we neither can't predict nor control
    operating system limits for maximal number of open files.
    
    
    sql/mysql_priv.h:
      Add constants for table_cache minimum and default values.
    sql/mysqld.cc:
      Fix max_connections and table_cache_size re-computation.
    885dc1cb
mysql_priv.h 50.7 KB