mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 5.0.80 release and 5.0 community. Version left at 5.0.80.
This commit is contained in:
@ -202,7 +202,7 @@ void adjust_linfo_offsets(my_off_t purge_offset)
|
||||
|
||||
bool log_in_use(const char* log_name)
|
||||
{
|
||||
int log_name_len = strlen(log_name) + 1;
|
||||
size_t log_name_len = strlen(log_name) + 1;
|
||||
THD *tmp;
|
||||
bool result = 0;
|
||||
|
||||
@ -1284,8 +1284,8 @@ int cmp_master_pos(const char* log_file_name1, ulonglong log_pos1,
|
||||
const char* log_file_name2, ulonglong log_pos2)
|
||||
{
|
||||
int res;
|
||||
uint log_file_name1_len= strlen(log_file_name1);
|
||||
uint log_file_name2_len= strlen(log_file_name2);
|
||||
size_t log_file_name1_len= strlen(log_file_name1);
|
||||
size_t log_file_name2_len= strlen(log_file_name2);
|
||||
|
||||
// We assume that both log names match up to '.'
|
||||
if (log_file_name1_len == log_file_name2_len)
|
||||
@ -1580,7 +1580,7 @@ int log_loaded_block(IO_CACHE* file)
|
||||
lf_info->last_pos_in_file >= my_b_get_pos_in_file(file))
|
||||
DBUG_RETURN(0);
|
||||
|
||||
for (block_len= my_b_get_bytes_in_buffer(file); block_len > 0;
|
||||
for (block_len= (uint) (my_b_get_bytes_in_buffer(file)); block_len > 0;
|
||||
buffer += min(block_len, max_event_size),
|
||||
block_len -= min(block_len, max_event_size))
|
||||
{
|
||||
|
Reference in New Issue
Block a user