reset cursor stacks before reuse

This commit is contained in:
Jason E. Aten 2020-12-09 18:40:54 +00:00
parent 1add244f8a
commit 81b9586a4b

View file

@ -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
}