mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-07 11:27:50 +00:00
reset cursor stacks before reuse
This commit is contained in:
parent
1add244f8a
commit
81b9586a4b
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