Merge pull request #1194 from jaten-molecula/fix_freepageset

fix bug in pgno computation in freePageSet
This commit is contained in:
tgruben 2020-12-08 15:52:25 -06:00 committed by GitHub
commit 662073c284
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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