summaryrefslogtreecommitdiff
path: root/mysql-test/t/insert.test
diff options
context:
space:
mode:
authorNarayanan V <v.narayanan@sun.com>2009-04-09 13:48:23 +0530
committerNarayanan V <v.narayanan@sun.com>2009-04-09 13:48:23 +0530
commit53f8922307dd8504dbe14ee1ca3106cb51b5c151 (patch)
tree00988a6e771a7d0c6ab578e5c6abc1aeb3e747bc /mysql-test/t/insert.test
parentb1b8ab51599bed05430dc4a210f1b5a9bd066e08 (diff)
downloadmariadb-git-53f8922307dd8504dbe14ee1ca3106cb51b5c151.tar.gz
Bug#38848 myisam_use_mmap causes widespread myisam corruption on windows
Currently the memory map is being created with a size that is greater than the size of the underlying datafile. This can cause varying behaviour, e.g. In windows the size of the datafile is increased, while on linux it remains the same. This fix removes the increment margin to the size that is used while creating the memory map. storage/myisam/mi_dynrec.c: remove MEMMAP_EXTRA_MARGIN that is used as the increment margin to the underlying datafile size while creating the mmap. storage/myisam/mi_packrec.c: The size of the underlying datafile is increased by MEMMAP_EXTRA_MARGIN when using a packed record format. Hence in this case the size of the memory map should be incremented by the same factor.
Diffstat (limited to 'mysql-test/t/insert.test')
0 files changed, 0 insertions, 0 deletions