Bug #106233 it is better to create TrxUndoRsegs after the if judgment
Submitted: 21 Jan 2022 8:57 Modified: 21 Jan 2022 9:47
Reporter: alex xing (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S5 (Performance)
Version:8.0.28 OS:Any
Assigned to: CPU Architecture:Any
Tags: Contribution

[21 Jan 2022 8:57] alex xing
Description:
it is better to create TrxUndoRsegs after the if judgment , which can Reduce memory consumption

How to repeat:
just read the code

Suggested fix:
just as the below patch
[21 Jan 2022 8:57] 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), 878 bytes.

[21 Jan 2022 9:47] MySQL Verification Team
Hello Alex Xing,

Thank you for the report and contribution.

regards,
Umesh