From a8b38d70b92d0ea9ff24d8b895f78bd9a52aa4f0 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sun, 3 Sep 2023 11:09:56 +0700 Subject: [PATCH] save --- mdbx/cursor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mdbx/cursor.go b/mdbx/cursor.go index d3f4181..96940bb 100644 --- a/mdbx/cursor.go +++ b/mdbx/cursor.go @@ -156,6 +156,8 @@ func (c *Cursor) Get(setkey, setval []byte, op uint) (key, val []byte, err error err = c.getVal2(setkey, setval, op) } if err != nil { + *c.txn.key = C.MDBX_val{} + *c.txn.val = C.MDBX_val{} *c.txn.key = C.MDBX_val{} *c.txn.val = C.MDBX_val{} return nil, nil, err