Bug #71815 redundant code in function recv_sys_var_init
Submitted: 24 Feb 2014 9:01 Modified: 24 Feb 2014 10:11
Reporter: zhai weixiang (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:5.5, 5.6, 5.7 OS:Any
Assigned to: CPU Architecture:Any

[24 Feb 2014 9:01] zhai weixiang
Description:
quoted code:

void
recv_sys_var_init(void)
/*===================*/
{
        recv_lsn_checks_on = FALSE;

        recv_n_pool_free_frames = 256;            ------>The first assignment

        recv_recovery_on = FALSE;

        recv_needed_recovery = FALSE;

        recv_lsn_checks_on = FALSE;

        recv_log_scan_is_startup_type = FALSE;

        recv_no_ibuf_operations = FALSE;

        recv_scan_print_counter = 0;

        recv_previous_parsed_rec_type   = 999999;

        recv_previous_parsed_rec_offset = 0;

        recv_previous_parsed_rec_is_multi = 0;

        recv_max_parsed_page_no = 0;

        recv_n_pool_free_frames = 256;      ------->The second assignment

        recv_max_page_lsn = 0;
}

How to repeat:
read the code 

Suggested fix:
remove the redundant code
[24 Feb 2014 9:06] zhai weixiang
another variable in this function : recv_lsn_checks_on
[24 Feb 2014 10:11] MySQL Verification Team
Hello Zhai,

Thank you for the report.
Verified as described.

Thanks,
Umesh
[24 Feb 2014 10:13] MySQL Verification Team
5.5, 5.6 and 5.7 are affected.