~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/drizzled.cc

  • Committer: Brian Aker
  • Date: 2008-12-30 02:02:25 UTC
  • Revision ID: brian@tangent.org-20081230020225-vzfkv5db9wrmhb7k
Make block_size for myisam fit into plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
461
461
static bool opt_do_pstack;
462
462
#endif /* HAVE_STACK_TRACE_ON_SEGV */
463
463
static int cleanup_done;
464
 
static uint32_t opt_myisam_block_size;
465
464
static char *opt_binlog_index_name;
466
465
static char *opt_tc_heuristic_recover;
467
466
static char *drizzle_home_ptr, *pidfile_name_ptr;
3365
3364
   (char**) &global_system_variables.min_examined_row_limit,
3366
3365
   (char**) &max_system_variables.min_examined_row_limit, 0, GET_ULL,
3367
3366
   REQUIRED_ARG, 0, 0, ULONG_MAX, 0, 1L, 0},
3368
 
  {"myisam_block_size", OPT_MYISAM_BLOCK_SIZE,
3369
 
   N_("Block size to be used for MyISAM index pages."),
3370
 
   (char**) &opt_myisam_block_size,
3371
 
   (char**) &opt_myisam_block_size, 0, GET_ULONG, REQUIRED_ARG,
3372
 
   MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH,
3373
 
   0, MI_MIN_KEY_BLOCK_LENGTH, 0},
3374
3367
  {"myisam_data_pointer_size", OPT_MYISAM_DATA_POINTER_SIZE,
3375
3368
   N_("Default pointer size to be used for MyISAM tables."),
3376
3369
   (char**) &myisam_data_pointer_size,
4285
4278
  myisam_max_temp_length=
4286
4279
    (my_off_t) global_system_variables.myisam_max_sort_file_size;
4287
4280
 
4288
 
  /* Set global variables based on startup options */
4289
 
  myisam_block_size=(uint) 1 << my_bit_log2(opt_myisam_block_size);
4290
 
 
4291
4281
  if (init_global_datetime_format(DRIZZLE_TIMESTAMP_DATE,
4292
4282
                                  &global_system_variables.date_format) ||
4293
4283
      init_global_datetime_format(DRIZZLE_TIMESTAMP_TIME,