Bug #108770 A if condition in function page_cur_insert_rec_write_log may be incorrect
Submitted: 14 Oct 2022 2:13 Modified: 14 Oct 2022 5:55
Reporter: Yin Peng (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:8.0.30, 8.0.31 OS:Any
Assigned to: CPU Architecture:Any

[14 Oct 2022 2:13] Yin Peng
Description:
In function page_cur_insert_rec_write_log, there is a if statement:

if (cur_version != ins_version && cur_extra_size == extra_size) {
  ......
}

Maybe it should be:

if (cur_version == ins_version && cur_extra_size == extra_size) {
  ......
}

By the way, why two records in different versions can not be compared? 

How to repeat:
Read the code.

Suggested fix:
Change the if statement to:

if (cur_version == ins_version && cur_extra_size == extra_size) {
  ......
}
[14 Oct 2022 5:55] MySQL Verification Team
Hello yin peng,

Thank you for the report and feedback.

regards,
Umesh