From 4b886e2a5812e43d3d9f25d499741a630675153e Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Fri, 3 Dec 2021 15:33:22 +0300 Subject: [PATCH] mdbx: don't return `MDBX_RESULT_TRUE` (-1) from `mdbx_env_set_option()`. --- src/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core.c b/src/core.c index 2e2e7106..2e06edfd 100644 --- a/src/core.c +++ b/src/core.c @@ -21909,6 +21909,7 @@ __cold int mdbx_env_set_option(MDBX_env *env, const MDBX_option_t option, err = mdbx_env_sync_poll(env); if (unlikely(MDBX_IS_ERROR(err))) return err; + err = MDBX_SUCCESS; } break; @@ -21926,6 +21927,7 @@ __cold int mdbx_env_set_option(MDBX_env *env, const MDBX_option_t option, err = mdbx_env_sync_poll(env); if (unlikely(MDBX_IS_ERROR(err))) return err; + err = MDBX_SUCCESS; } break;