From 3b6fa1fd90152f5b6428ac644dc568a6690b395a Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sun, 22 Dec 2024 17:48:23 +0700 Subject: [PATCH] save --- mdbx/error_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdbx/error_unix.go b/mdbx/error_unix.go index ac9d70c..e227467 100644 --- a/mdbx/error_unix.go +++ b/mdbx/error_unix.go @@ -14,7 +14,7 @@ func operrno(op string, ret C.int) error { if ret == C.MDBX_SUCCESS || ret == C.MDBX_RESULT_TRUE { return nil } - if ret == C.MDBX_NOTFOUND { + if ret == C.MDBX_NOTFOUND || int(ret) == int(syscall.ENODATA) { return ErrNotFound } if minErrno <= ret && ret <= maxErrno {