mariadb/storage/innobase/os
Marko Mäkelä 51679e5c38 MDEV-14132 InnoDB page corruption
On some old GNU/Linux systems, invoking posix_fallocate() with
offset=0 would sometimes cause already allocated bytes in the
data file to be overwritten.

Fix a correctness regression that was introduced in
commit 420798a81a
by invoking posix_fallocate() in a safer way.
A similar change was made in MDEV-5746 earlier.

os_file_get_size(): Avoid changing the state of the file handle,
by invoking fstat() instead of lseek().

os_file_set_size(): Determine the current size of the file
by os_file_get_size(), and then extend the file from that point
onwards.
2017-11-06 08:53:51 +02:00
..
os0file.cc MDEV-14132 InnoDB page corruption 2017-11-06 08:53:51 +02:00
os0proc.cc move to storage/innobase 2015-05-04 19:17:21 +02:00
os0sync.cc InnoDB-5.6.24 2015-05-05 00:06:23 +02:00
os0thread.cc Merge branch '10.0' into 10.1 2017-01-16 03:18:14 +02:00