mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 15:01:03 +00:00
use readLeafCellKey to read a leaf cell's key
This commit is contained in:
parent
dc67149326
commit
9b13ab7dd3
1 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue