mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +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:
@@ -114,7 +114,7 @@ int mi_lock_database(MI_INFO *info, int lock_type)
|
||||
if (myisam_flush)
|
||||
{
|
||||
if (share->file_map)
|
||||
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
|
||||
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
|
||||
if (mysql_file_sync(share->kfile, MYF(0)))
|
||||
mark_crashed= error= my_errno;
|
||||
if (mysql_file_sync(info->dfile, MYF(0)))
|
||||
@@ -529,7 +529,7 @@ int _mi_writeinfo(register MI_INFO *info, uint operation)
|
||||
if (myisam_flush)
|
||||
{
|
||||
if (share->file_map)
|
||||
my_msync(info->dfile, share->file_map, (size_t)share->mmaped_length, MS_SYNC);
|
||||
my_msync(info->dfile, share->file_map, share->mmaped_length, MS_SYNC);
|
||||
mysql_file_sync(share->kfile, 0);
|
||||
mysql_file_sync(info->dfile, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user