~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/myisam/ha_myisam.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:
32
32
pthread_mutex_t THR_LOCK_myisam= PTHREAD_MUTEX_INITIALIZER;
33
33
 
34
34
static uint32_t repair_threads;
 
35
static uint32_t block_size;
35
36
 
36
37
/* bits in myisam_recover_options */
37
38
const char *myisam_recover_names[] =
1518
1519
    stats.create_time= misam_info.create_time;
1519
1520
    ref_length= misam_info.reflength;
1520
1521
    share->db_options_in_use= misam_info.options;
1521
 
    stats.block_size= myisam_block_size;        /* record block size */
 
1522
    stats.block_size= block_size;        /* record block size */
1522
1523
 
1523
1524
    /* Update share */
1524
1525
    if (share->tmp_table == NO_TMP_TABLE)
1861
1862
  return NULL;
1862
1863
}
1863
1864
 
 
1865
static DRIZZLE_SYSVAR_UINT(block_size, block_size,
 
1866
                           PLUGIN_VAR_RQCMDARG | PLUGIN_VAR_READONLY,
 
1867
                           N_("Block size to be used for MyISAM index pages."),
 
1868
                           NULL, NULL, MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, 
 
1869
                           MI_MAX_KEY_BLOCK_LENGTH, 0);
 
1870
 
1864
1871
static DRIZZLE_SYSVAR_UINT(repair_threads, repair_threads,
1865
 
  PLUGIN_VAR_RQCMDARG,
1866
 
  N_("Number of threads to use when repairing MyISAM tables. The value of "
1867
 
     "1 disables parallel repair."),
1868
 
  NULL, NULL, 1, 1, UINT32_MAX, 0);
 
1872
                           PLUGIN_VAR_RQCMDARG,
 
1873
                           N_("Number of threads to use when repairing MyISAM tables. The value of "
 
1874
                              "1 disables parallel repair."),
 
1875
                           NULL, NULL, 1, 1, UINT32_MAX, 0);
1869
1876
 
1870
1877
static struct st_mysql_sys_var* system_variables[]= {
 
1878
  DRIZZLE_SYSVAR(block_size),
1871
1879
  DRIZZLE_SYSVAR(repair_threads),
1872
1880
  NULL
1873
1881
};