[Tarantool-patches] [PATCH 05/11] sql: use mremap() on OpenBSD
sergeyb at tarantool.org
sergeyb at tarantool.org
Tue May 12 15:32:22 MSK 2020
From: Sergey Bronnikov <sergeyb at tarantool.org>
Part of #4967
---
src/box/sql/os_unix.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/box/sql/os_unix.c b/src/box/sql/os_unix.c
index 683a71d00..b351c5500 100644
--- a/src/box/sql/os_unix.c
+++ b/src/box/sql/os_unix.c
@@ -1102,7 +1102,7 @@ unixRemapfile(unixFile * pFd, /* File descriptor object */
/* Unmap any pages of the existing mapping that cannot be reused. */
if (nReuse != nOrig)
munmap(pReq, nOrig - nReuse);
- #if !defined(__APPLE__) && !defined(__FreeBSD__)
+ #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
pNew = mremap(pOrig, nReuse, nNew, MREMAP_MAYMOVE);
#else
pNew = mmap(pReq, nNew - nReuse, flags, MAP_SHARED, h, nReuse);
--
2.23.0
More information about the Tarantool-patches
mailing list