diff options
author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 20:13:28 +0200 |
---|---|---|
committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2011-02-02 20:13:28 +0200 |
commit | fe145b0900d8006310232e2edb4137c04c116702 (patch) | |
tree | 12d9c3f5bea6c6481050211f64ad22118d925c93 /sql/mysqld.cc | |
parent | d98270e1a39c5c9d40b9d3fbca7d8a3ebeb92ccc (diff) | |
parent | 72ae1d65dd62f1e2cc308549a84a46feadd158f4 (diff) | |
download | mariadb-git-fe145b0900d8006310232e2edb4137c04c116702.tar.gz |
merge
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 188ed7c6885..cf1627ced57 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -3080,12 +3080,6 @@ static int init_common_variables() 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; @@ -3124,6 +3118,13 @@ static int init_common_variables() */ 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")); |