mariadb/storage/xtradb/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 5.6.27-76.0 2015-12-13 10:13:18 +01:00
os0stacktrace.cc 5.5 merge 2014-09-16 14:03:17 +02:00
os0sync.cc Remove unnecessary semicolon 2016-08-01 12:13:14 +09:00
os0thread.cc Merge 10.0 into 10.1 2017-03-09 08:53:08 +02:00