From 753fa13048624d0e85d167e841294d79a5ca629d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Mon, 17 Oct 2022 11:10:22 +0300 Subject: [PATCH] =?UTF-8?q?mdbx:=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BB=D0=B8=D1=88=D0=BD=D0=B8=D1=85=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD=D1=82=D0=B0=D1=80=D0=B8=D0=B5?= =?UTF-8?q?=D0=B2.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core.c b/src/core.c index 1723a9ad..e23bf107 100644 --- a/src/core.c +++ b/src/core.c @@ -20280,7 +20280,6 @@ __cold static int env_compact(MDBX_env *env, MDBX_txn *read_txn, const size_t chunk = ((size_t)MDBX_ENVCOPY_WRITEBUF < whole_size - offset) ? (size_t)MDBX_ENVCOPY_WRITEBUF : whole_size - offset; - /* copy to avoid EFAULT in case swapped-out */ int rc = osal_write(fd, data_buffer, chunk); if (unlikely(rc != MDBX_SUCCESS)) return rc; @@ -20410,7 +20409,6 @@ __cold static int env_copy_asis(MDBX_env *env, MDBX_txn *read_txn, ((size_t)MDBX_ENVCOPY_WRITEBUF < whole_size - offset) ? (size_t)MDBX_ENVCOPY_WRITEBUF : whole_size - offset; - /* copy to avoid EFAULT in case swapped-out */ rc = osal_write(fd, data_buffer, chunk); offset += chunk; }