Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
AskAlexSharov committed Mar 7, 2024
1 parent 90862da commit a6a70a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mdbx/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ func (txn *Txn) ListDBI() (res []string, err error) {
if err != nil {
return nil, err
}
defer c.Close()
for k, _, err := c.Get(nil, nil, First); k != nil; k, _, err = c.Get(nil, nil, Next) {
if err != nil {
return nil, err
Expand Down
1 change: 1 addition & 0 deletions mdbx/txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,7 @@ func TestTxn_Flags(t *testing.T) {
if err != nil {
return err
}
defer cur.Close()
k, v, err := cur.Get(nil, nil, Next)
if err != nil {
return err
Expand Down

0 comments on commit a6a70a5

Please sign in to comment.