From 0127830a43331c9cd637a6dc817de14bbcf8cbde Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sun, 22 Dec 2024 18:01:34 +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 e227467..ac9d70c 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 || int(ret) == int(syscall.ENODATA) { + if ret == C.MDBX_NOTFOUND { return ErrNotFound } if minErrno <= ret && ret <= maxErrno {