mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
cleanup: my_off_t mmaped_length -> size_t
all mmap-related functions take size_t lengh. mmaped_length was casted to size_t *every single time*
This commit is contained in:
@@ -4791,8 +4791,7 @@ static int replace_data_file(HA_CHECK *param, MI_INFO *info, File new_file)
|
||||
*/
|
||||
if (info->s->file_map)
|
||||
{
|
||||
(void) my_munmap((char*) info->s->file_map,
|
||||
(size_t) info->s->mmaped_length);
|
||||
(void) my_munmap((char*) info->s->file_map, info->s->mmaped_length);
|
||||
info->s->file_map= NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user