mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Merge pull request #1204 from jaten-molecula/clear_cursors
reset cursor stacks before reuse
This commit is contained in:
commit
087418566b
1 changed files with 1 additions and 0 deletions
|
|
@ -561,6 +561,7 @@ func (tx *Tx) cursor(name string) (*Cursor, error) {
|
|||
}
|
||||
|
||||
c := tx.db.getCursor(tx)
|
||||
c.stack.top = 0
|
||||
c.stack.elems[0] = stackElem{pgno: root}
|
||||
return c, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue