Skip to content

Commit f4c7a91

Browse files
committed
Don't throw away upper 8 bits of heap number.
1 parent cfb1f17 commit f4c7a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/innodb/page/index.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def record_header(cursor)
287287
# 13 bits for heap_number
288288
bits1 = c.name("bits1") { c.get_uint16 }
289289
header[:type] = RECORD_TYPES[bits1 & 0x07]
290-
header[:heap_number] = (bits1 & 0xf8) >> 3
290+
header[:heap_number] = (bits1 & 0xfff8) >> 3
291291
when :redundant
292292
# The "next" pointer is an absolute offset within the page.
293293
header[:next] = c.name("next") { c.get_uint16 }

0 commit comments

Comments
 (0)