diff options
author | monty@narttu.mysql.fi <> | 2003-08-22 04:07:40 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-08-22 04:07:40 +0300 |
commit | efa85aad49be43ef3cdf8f631b43e9a87d0189b4 (patch) | |
tree | 69f51d9d40e937b7da442d9523c0a0a66d5ba847 /sql/mysqld.cc | |
parent | 423b1b7c4aa19fe991f65e60bdbf07ba4d9c46fc (diff) | |
download | mariadb-git-efa85aad49be43ef3cdf8f631b43e9a87d0189b4.tar.gz |
Move test that uses many tables (in query_cache.test) to separate test so that we can get it 'skipped' instead of 'failed' on system where we can't open many files.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index b90ab1a4a3a..ae5b46671a5 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2158,7 +2158,10 @@ int main(int argc, char **argv) max_connections,table_cache_size)); sql_print_error("Warning: Changed limits: max_connections: %ld table_cache: %ld",max_connections,table_cache_size); } + open_files_limit= files; } +#else + open_files_limit= 0; /* Can't set or detect limit */ #endif unireg_init(opt_specialflag); /* Set up extern variabels */ init_errmessage(); /* Read error messages from file */ @@ -4903,6 +4906,19 @@ static void fix_paths(void) } +/* + set how many open files we want to be able to handle + + SYNOPSIS + set_maximum_open_files() + max_file_limit Files to open + + NOTES + The request may not fulfilled becasue of system limitations + + RETURN + Files available to open +*/ #ifdef SET_RLIMIT_NOFILE static uint set_maximum_open_files(uint max_file_limit) |