From 9b13ab7dd3019303357de2d24b503ca84f556f51 Mon Sep 17 00:00:00 2001 From: Seebs Date: Wed, 9 Dec 2020 14:39:36 -0600 Subject: [PATCH] use readLeafCellKey to read a leaf cell's key --- rbf/cursor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rbf/cursor.go b/rbf/cursor.go index c4fb1ad1f..3920ffaec 100644 --- a/rbf/cursor.go +++ b/rbf/cursor.go @@ -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.