Bug #105297 Correct length formula for null-bitmask field in table_map_event
Submitted: 22 Oct 2021 15:09 Modified: 22 Oct 2021 15:55
Reporter: DONGWOOK CHANG (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any
Tags: null-bitmask, replication, TABLE_MAP_EVENT

[22 Oct 2021 15:09] DONGWOOK CHANG
Description:
https://dev.mysql.com/doc/internals/en/table-map-event.html

The length formula for null-bitmask field is incorrect.
It must be corrected as below.
(column-count + 8) / 7 -> (column-count + 7) / 8

reference:

https://github.com/mysql/mysql-server/blob/3290a66c89eb1625a7058e0ef732432b6952b435/sql/lo...

https://github.com/mysql/mysql-server/blob/3290a66c89eb1625a7058e0ef732432b6952b435/libbin...

How to repeat:
The incorrect description can be found in:
https://dev.mysql.com/doc/internals/en/table-map-event.html
[22 Oct 2021 15:55] MySQL Verification Team
Thank you for the bug report.