From 8a1a62ce7045e7106a3d92fa4c9e20689e4c3c35 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: Thu, 6 Mar 2025 22:31:38 +0300 Subject: [PATCH] =?UTF-8?q?mdbx++:=20=D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C?= =?UTF-8?q?=D0=B7=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20`mdbx=5Ftxn=5Frele?= =?UTF-8?q?ase=5Fall=5Fcursors=5Fex()`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mdbx.h++ | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mdbx.h++ b/mdbx.h++ index 62315f61..c0226157 100644 --- a/mdbx.h++ +++ b/mdbx.h++ @@ -5604,10 +5604,9 @@ inline cursor_managed txn::open_cursor(map_handle map) const { } inline size_t txn::release_all_cursors(bool unbind) const { - int err = ::mdbx_txn_release_all_cursors(handle_, unbind); - if (MDBX_UNLIKELY(err < 0)) - MDBX_CXX20_UNLIKELY error::throw_exception(err); - return size_t(err); + size_t count; + error::success_or_throw(::mdbx_txn_release_all_cursors_ex(handle_, unbind, &count)); + return count; } inline ::mdbx::map_handle txn::open_map(const ::mdbx::slice &name, const ::mdbx::key_mode key_mode,