File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
- /* Copyright (c) 2000, 2015 , 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
@@ -102,6 +102,9 @@ int mi_lock_database(MI_INFO *info, int lock_type)
102
102
share -> changed = 0 ;
103
103
if (myisam_flush )
104
104
{
105
+ if (share -> file_map )
106
+ my_msync (info -> dfile , share -> file_map , share -> mmaped_length , MS_SYNC );
107
+
105
108
if (mysql_file_sync (share -> kfile , MYF (0 )))
106
109
error = my_errno ();
107
110
if (mysql_file_sync (info -> dfile , MYF (0 )))
@@ -449,6 +452,8 @@ int _mi_writeinfo(MI_INFO *info, uint operation)
449
452
#ifdef _WIN32
450
453
if (myisam_flush )
451
454
{
455
+ if (share -> file_map )
456
+ my_msync (info -> dfile , share -> file_map , share -> mmaped_length , MS_SYNC );
452
457
mysql_file_sync (share -> kfile , 0 );
453
458
mysql_file_sync (info -> dfile , 0 );
454
459
}
You can’t perform that action at this time.
0 commit comments