use readLeafCellKey to read a leaf cell's key

This commit is contained in:
Seebs 2020-12-09 14:39:36 -06:00
parent dc67149326
commit 9b13ab7dd3

View file

@ -1125,8 +1125,7 @@ func (c *Cursor) Key() uint64 {
if readCellN(leafPage[:]) == 0 {
return 0
}
cell := readLeafCell(leafPage, elem.index)
return cell.Key
return readLeafCellKey(leafPage, elem.index)
}
// Values returns the values for the container the cursor is currently pointing to.