File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
- /* Copyright (c) 2000, 2013 , Oracle and/or its affiliates. All rights reserved.
1
+ /* Copyright (c) 2000, 2017 , Oracle and/or its affiliates. All rights reserved.
2
2
3
3
This program is free software; you can redistribute it and/or modify
4
4
it under the terms of the GNU General Public License as published by
@@ -103,6 +103,8 @@ int mi_lock_database(MI_INFO *info, int lock_type)
103
103
share -> changed = 0 ;
104
104
if (myisam_flush )
105
105
{
106
+ if (share -> file_map )
107
+ my_msync (info -> dfile , share -> file_map , share -> mmaped_length , MS_SYNC );
106
108
if (mysql_file_sync (share -> kfile , MYF (0 )))
107
109
error = my_errno ;
108
110
if (mysql_file_sync (info -> dfile , MYF (0 )))
@@ -450,6 +452,8 @@ int _mi_writeinfo(register MI_INFO *info, uint operation)
450
452
#ifdef _WIN32
451
453
if (myisam_flush )
452
454
{
455
+ if (share -> file_map )
456
+ my_msync (info -> dfile , share -> file_map , share -> mmaped_length , MS_SYNC );
453
457
mysql_file_sync (share -> kfile , 0 );
454
458
mysql_file_sync (info -> dfile , 0 );
455
459
}
You can’t perform that action at this time.
0 commit comments