diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 19:05:28 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 19:05:28 +0200 |
commit | ac3243c8c82077c34e99e8f7f9a83e5bc9fd7b66 (patch) | |
tree | 4635605ae0572f713774190b2fe771d0df3a1f96 /sql/mysqld.cc | |
parent | 3473329d3b5e2fd339c184c2e7c75bb6b3bda3ad (diff) | |
parent | 59f68983ffee45616a8ec255b5f13535236dd0ea (diff) | |
download | mariadb-git-ac3243c8c82077c34e99e8f7f9a83e5bc9fd7b66.tar.gz |
merge to 5.1.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 2e36bc6ca66..54f93cccd5d 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3236,12 +3236,6 @@ static int init_common_variables(const char *conf_file_name, int argc, max_system_variables.pseudo_thread_id= (ulong)~0; server_start_time= flush_status_time= my_time(0); - /* TODO: remove this when my_time_t is 64 bit compatible */ - if (server_start_time >= (time_t) MY_TIME_T_MAX) - { - sql_print_error("This MySQL server doesn't support dates later then 2038"); - return 1; - } rpl_filter= new Rpl_filter; binlog_filter= new Rpl_filter; @@ -3280,6 +3274,13 @@ static int init_common_variables(const char *conf_file_name, int argc, */ mysql_bin_log.init_pthread_objects(); + /* TODO: remove this when my_time_t is 64 bit compatible */ + if (!IS_TIME_T_VALID_FOR_TIMESTAMP(server_start_time)) + { + sql_print_error("This MySQL server doesn't support dates later then 2038"); + return 1; + } + if (gethostname(glob_hostname,sizeof(glob_hostname)) < 0) { strmake(glob_hostname, STRING_WITH_LEN("localhost")); |