~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/mysqld.cc

  • Committer: Brian Aker
  • Date: 2008-07-01 08:15:04 UTC
  • Revision ID: brian@tangent.org-20080701081504-qn3jzgsbb2twnchs
Large file and ftruncate() support

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
#define GET_HA_ROWS GET_ULONG
197
197
#endif
198
198
 
199
 
bool opt_large_files= sizeof(my_off_t) > 4;
200
 
 
201
199
/*
202
200
  Used with --help for detailed option
203
201
*/
278
276
my_bool opt_log_slow_admin_statements= 0;
279
277
my_bool opt_log_slow_slave_statements= 0;
280
278
my_bool lower_case_file_system= 0;
281
 
my_bool opt_large_pages= 0;
282
 
uint    opt_large_page_size= 0;
283
279
my_bool opt_old_style_user_limits= 0, trust_function_creators= 0;
284
280
/*
285
281
  True if there is at least one per-hour limit for some user, so we should
2170
2166
  DBUG_PRINT("info",("%s  Ver %s for %s on %s\n",my_progname,
2171
2167
                     server_version, SYSTEM_TYPE,MACHINE_TYPE));
2172
2168
 
2173
 
#ifdef HAVE_LARGE_PAGES
2174
 
  /* Initialize large page size */
2175
 
  if (opt_large_pages && (opt_large_page_size= my_get_large_page_size()))
2176
 
  {
2177
 
      my_use_large_pages= 1;
2178
 
      my_large_page_size= opt_large_page_size;
2179
 
  }
2180
 
#endif /* HAVE_LARGE_PAGES */
2181
 
 
2182
2169
  /* connections and databases needs lots of files */
2183
2170
  {
2184
2171
    uint files, wanted_files, max_open_files;
3552
3539
  {"general-log", OPT_GENERAL_LOG,
3553
3540
   "Enable|disable general log", (uchar**) &opt_log,
3554
3541
   (uchar**) &opt_log, 0, GET_BOOL, OPT_ARG, 0, 0, 0, 0, 0, 0},
3555
 
#ifdef HAVE_LARGE_PAGES
3556
 
  {"large-pages", OPT_ENABLE_LARGE_PAGES, "Enable support for large pages. \
3557
 
Disable with --skip-large-pages.",
3558
 
   (uchar**) &opt_large_pages, (uchar**) &opt_large_pages, 0, GET_BOOL, NO_ARG, 0, 0, 0,
3559
 
   0, 0, 0},
3560
 
#endif
3561
3542
  {"init-connect", OPT_INIT_CONNECT, "Command(s) that are executed for each new connection",
3562
3543
   (uchar**) &opt_init_connect, (uchar**) &opt_init_connect, 0, GET_STR_ALLOC,
3563
3544
   REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
4589
4570
  opt_mysql_tmpdir= my_bind_addr_str= NullS;
4590
4571
  bzero((uchar*) &mysql_tmpdir_list, sizeof(mysql_tmpdir_list));
4591
4572
  bzero((char *) &global_status_var, sizeof(global_status_var));
4592
 
  opt_large_pages= 0;
4593
4573
  key_map_full.set_all();
4594
4574
 
4595
4575
  /* Character sets */