mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx: Support for user-settable cursor context.
Change-Id: I9bd60c432924e39020b2d3af3280f13c44d6cd91
This commit is contained in:
2
mdbx.h++
2
mdbx.h++
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user