fix bug in pgno computation in freePageSet

This commit is contained in:
Jason E. Aten 2020-12-08 20:45:54 +00:00
parent bd060b6fd2
commit 96abbfa059

View file

@ -787,7 +787,7 @@ func (tx *Tx) freePageSet() (map[uint32]struct{}, error) {
cell := readLeafCell(leafPage, elem.index)
for _, v := range cell.Values(tx) {
pgno := uint32((cell.Key << 16) & uint64(v))
pgno := uint32((cell.Key << 16) | uint64(v))
m[pgno] = struct{}{}
}
}