freebsd-ports/databases/xtrabackup/files/patch-storage-myisam-mi_dynrec.c
Oleksii Samorukov da87c36f4e databases/xtrabackup: update to 2.4.28
- Remove outdated patches and sync some patches from databases/mysql
- Update version

ChangeLog: https://docs.percona.com/percona-xtrabackup/2.4/release-notes.html
2023-06-05 23:05:59 +02:00

23 lines
999 B
C

--- storage/myisam/mi_dynrec.c.orig 2023-03-14 11:58:56 UTC
+++ storage/myisam/mi_dynrec.c
@@ -72,18 +72,13 @@ my_bool mi_dynmap_file(MI_INFO *info, my_off_t size)
DBUG_RETURN(1);
}
/*
- I wonder if it is good to use MAP_NORESERVE. From the Linux man page:
- MAP_NORESERVE
- Do not reserve swap space for this mapping. When swap space is
- reserved, one has the guarantee that it is possible to modify the
- mapping. When swap space is not reserved one might get SIGSEGV
- upon a write if no physical memory is available.
+ MAP_NORESERVE is unimplemented in FreeBSD
*/
info->s->file_map= (uchar*)
my_mmap(0, (size_t) size,
info->s->mode==O_RDONLY ? PROT_READ :
PROT_READ | PROT_WRITE,
- MAP_SHARED | MAP_NORESERVE,
+ MAP_SHARED,
info->dfile, 0L);
if (info->s->file_map == (uchar*) MAP_FAILED)
{