mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
MDEV-38730 innodb_log_file_mmap=ON does not work on AMD64, ARMv8, POWER
log_mmap(): If the MAP_SYNC|MAP_SHARED_VALIDATE operation (PMEM) failed and the path is not in /dev/shm (which we treat as PMEM), proceed to try regular MAP_SHARED read-only mapping. This allows somewhat more efficient crash recovery, basically with an I/O buffer that is not limited by innodb_log_buffer_size. Reviewed by: Thirunarayanan Balathandayuthapani
This commit is contained in:
parent
81cf4fc4d6
commit
4152ee12ea
1 changed files with 2 additions and 3 deletions
|
|
@ -288,9 +288,8 @@ remap:
|
|||
if (!stat("/dev/shm", &st))
|
||||
{
|
||||
is_pmem= st.st_dev == st_dev;
|
||||
if (!is_pmem)
|
||||
return ptr; /* MAP_FAILED */
|
||||
goto remap;
|
||||
if (is_pmem)
|
||||
goto remap;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue