32
32
pthread_mutex_t THR_LOCK_myisam= PTHREAD_MUTEX_INITIALIZER;
34
34
static uint32_t repair_threads;
35
static uint32_t block_size;
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 */
1523
1524
/* Update share */
1524
1525
if (share->tmp_table == NO_TMP_TABLE)
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);
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);
1870
1877
static struct st_mysql_sys_var* system_variables[]= {
1878
DRIZZLE_SYSVAR(block_size),
1871
1879
DRIZZLE_SYSVAR(repair_threads),