Bug #106941 apply_batch_on looks like redundant variables
Submitted: 7 Apr 2022 9:21 Modified: 7 Apr 2022 10:10
Reporter: alex xing (OCA) Email Updates:
Status: Verified Impact on me:
Category:MySQL Server: InnoDB storage engine Severity:S5 (Performance)
Version:8.0.28 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[7 Apr 2022 9:21] alex xing
1. the value of apply_batch_on seems the sames to apply_log_recs
2. no need to wait apply_batch_on  in recv_apply_hashed_log_recs
it is better to remove the redundant code

How to repeat:
just read the code

Suggested fix:
it is better to remove the redundant code just like the below patch
[7 Apr 2022 9:22] alex xing
a simple patch to describe the optimization

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: optimize.patch (text/plain), 2.21 KiB.

[7 Apr 2022 10:10] MySQL Verification Team
Hello Alex Xing,

Thank you for the report and contribution.