mdbx: Support for user-settable cursor context.

Change-Id: I9bd60c432924e39020b2d3af3280f13c44d6cd91
This commit is contained in:
Leonid Yuriev
2020-09-29 20:58:09 +03:00
parent 72e136b9da
commit f6850f5367
5 changed files with 59 additions and 5 deletions

View File

@@ -4396,7 +4396,7 @@ inline bool cursor::erase(bool whole_multivalue) {
//------------------------------------------------------------------------------
inline cursor_managed::cursor_managed()
: cursor_managed(::mdbx_cursor_create()) {
: cursor_managed(::mdbx_cursor_create(nullptr)) {
if (MDBX_UNLIKELY(!handle_))
MDBX_CXX20_UNLIKELY error::throw_exception(MDBX_ENOMEM);
}