mdbx: добавление mdbx_cursor_close2() в API.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2025-03-06 17:10:14 +03:00
parent 1299653457
commit b2bd8bae38
5 changed files with 93 additions and 46 deletions

View File

@@ -1590,15 +1590,6 @@ __cold bool txn::rename_map(const ::std::string &old_name, const ::std::string &
//------------------------------------------------------------------------------
void cursor_managed::close() {
if (MDBX_UNLIKELY(!handle_))
MDBX_CXX20_UNLIKELY error::throw_exception(MDBX_EINVAL);
::mdbx_cursor_close(handle_);
handle_ = nullptr;
}
//------------------------------------------------------------------------------
__cold ::std::ostream &operator<<(::std::ostream &out, const slice &it) {
out << "{";
if (!it.is_valid())