~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Lee Bieber
  • Date: 2011-02-16 14:48:10 UTC
  • mfrom: (2172.1.5 build)
  • Revision ID: kalebral@gmail.com-20110216144810-u3w6f3a5s6qwisrz
Merge Stewart - remove unused macros
Merge Olaf - remove old style casts
Merge Stewart remove  unused macros in drizzledump
Merge Andrew - 718657: Several errors in Date/Time docs
Merge Olaf - Move strfunc functions into TYPELIB class

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
#include <drizzled/tztime.h>
77
77
#include <drizzled/unireg.h>
78
78
#include <plugin/myisam/myisam.h>
79
 
 
 
79
#include <drizzled/typelib.h>
80
80
#include "drizzled/visibility.h"
81
81
 
82
82
#include <google/protobuf/stubs/common.h>
308
308
fs::path system_config_dir(SYSCONFDIR);
309
309
 
310
310
 
311
 
char system_time_zone[30];
312
 
char *default_tz_name;
313
311
DRIZZLED_API char glob_hostname[FN_REFLEN];
314
312
 
315
313
char *opt_tc_log_file;
1099
1097
  drizzle_init_variables();
1100
1098
 
1101
1099
  find_plugin_dir(argv[0]);
1102
 
  {
1103
 
    struct tm tm_tmp;
1104
 
    localtime_r(&server_start_time,&tm_tmp);
1105
 
    strncpy(system_time_zone, tzname[tm_tmp.tm_isdst != 0 ? 1 : 0],
1106
 
            sizeof(system_time_zone)-1);
1107
1100
 
1108
 
  }
1109
1101
  /*
1110
1102
    We set SYSTEM time zone as reasonable default and
1111
1103
    also for failure of my_tz_init() and bootstrap mode.