diff options
author | unknown <lenz@mysql.com> | 2002-07-16 22:26:29 +0200 |
---|---|---|
committer | unknown <lenz@mysql.com> | 2002-07-16 22:26:29 +0200 |
commit | bcccf59ee0a195f35165090285501e3ffa6c7f8b (patch) | |
tree | f1824de46b9856170e47b9e46168afef78ed1759 /sql | |
parent | 419cec8d4693db8d051d7bf324c27d977cdc420d (diff) | |
download | mariadb-git-bcccf59ee0a195f35165090285501e3ffa6c7f8b.tar.gz |
Fix a core dump that occured on AIX and Solaris (and probably others)
in get_options (thanks to Sinisa for fixing this)
sql/mysqld.cc:
Fix a core dump that occured on AIX and Solaris in get_options
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mysqld.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 17ad87b63c1..447875e7eb3 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4493,17 +4493,17 @@ static void get_options(int argc,char **argv) default_table_type_name=ha_table_typelib.type_names[default_table_type-1]; default_tx_isolation_name=tx_isolation_typelib.type_names[default_tx_isolation]; /* To be deleted in MySQL 4.0 */ - if (!thd->variables.record_rnd_cache_size) + if (thd && !thd->variables.record_rnd_cache_size) thd->variables.record_rnd_cache_size= my_default_record_cache_size; /* Fix variables that are base 1024*1024 */ myisam_max_temp_length= (my_off_t) min(((ulonglong) - thd->variables.myisam_max_sort_file_size)*1024 * 1024, + global_system_variables.myisam_max_sort_file_size)*1024 * 1024, (ulonglong) MAX_FILE_SIZE); myisam_max_extra_temp_length= (my_off_t) min(((ulonglong) - thd->variables.myisam_max_extra_sort_file_size)*1024*1024, + global_system_variables.myisam_max_extra_sort_file_size)*1024*1024, (ulonglong) MAX_FILE_SIZE); myisam_block_size=(uint) 1 << my_bit_log2(opt_myisam_block_size); |