mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
bzr merge -r4346 maria/10.0 (maria-10.0.13)
This commit is contained in:
@@ -591,7 +591,19 @@ int ha_initialize_handlerton(st_plugin_int *plugin)
|
||||
savepoint_alloc_size+= tmp;
|
||||
hton2plugin[hton->slot]=plugin;
|
||||
if (hton->prepare)
|
||||
{
|
||||
total_ha_2pc++;
|
||||
if (tc_log && tc_log != get_tc_log_implementation())
|
||||
{
|
||||
total_ha_2pc--;
|
||||
hton->prepare= 0;
|
||||
push_warning_printf(current_thd, Sql_condition::WARN_LEVEL_WARN,
|
||||
ER_UNKNOWN_ERROR,
|
||||
"Cannot enable tc-log at run-time. "
|
||||
"XA features of %s are disabled",
|
||||
plugin->name.str);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
/* fall through */
|
||||
@@ -4763,11 +4775,13 @@ int ha_init_key_cache(const char *name, KEY_CACHE *key_cache, void *unused
|
||||
uint division_limit= (uint)key_cache->param_division_limit;
|
||||
uint age_threshold= (uint)key_cache->param_age_threshold;
|
||||
uint partitions= (uint)key_cache->param_partitions;
|
||||
uint changed_blocks_hash_size= (uint)key_cache->changed_blocks_hash_size;
|
||||
mysql_mutex_unlock(&LOCK_global_system_variables);
|
||||
DBUG_RETURN(!init_key_cache(key_cache,
|
||||
tmp_block_size,
|
||||
tmp_buff_size,
|
||||
division_limit, age_threshold,
|
||||
changed_blocks_hash_size,
|
||||
partitions));
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
@@ -4788,10 +4802,12 @@ int ha_resize_key_cache(KEY_CACHE *key_cache)
|
||||
long tmp_block_size= (long) key_cache->param_block_size;
|
||||
uint division_limit= (uint)key_cache->param_division_limit;
|
||||
uint age_threshold= (uint)key_cache->param_age_threshold;
|
||||
uint changed_blocks_hash_size= (uint)key_cache->changed_blocks_hash_size;
|
||||
mysql_mutex_unlock(&LOCK_global_system_variables);
|
||||
DBUG_RETURN(!resize_key_cache(key_cache, tmp_block_size,
|
||||
tmp_buff_size,
|
||||
division_limit, age_threshold));
|
||||
division_limit, age_threshold,
|
||||
changed_blocks_hash_size));
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
}
|
||||
@@ -4831,10 +4847,12 @@ int ha_repartition_key_cache(KEY_CACHE *key_cache)
|
||||
uint division_limit= (uint)key_cache->param_division_limit;
|
||||
uint age_threshold= (uint)key_cache->param_age_threshold;
|
||||
uint partitions= (uint)key_cache->param_partitions;
|
||||
uint changed_blocks_hash_size= (uint)key_cache->changed_blocks_hash_size;
|
||||
mysql_mutex_unlock(&LOCK_global_system_variables);
|
||||
DBUG_RETURN(!repartition_key_cache(key_cache, tmp_block_size,
|
||||
tmp_buff_size,
|
||||
division_limit, age_threshold,
|
||||
changed_blocks_hash_size,
|
||||
partitions));
|
||||
}
|
||||
DBUG_RETURN(0);
|
||||
|
Reference in New Issue
Block a user