Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Sep 3, 2023
1 parent 25b27d8 commit a8b38d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mdbx/cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8b38d7

Please sign in to comment.