Bug #101314 variable assignment unused in sql/rpl_slave.cc: queue_event()
Submitted: 26 Oct 2020 7:14 Modified: 29 Oct 2020 7:37
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[26 Oct 2020 7:14] Li Zhong
Description:
In sql/rpl_slave.cc line7887, there is 
if (save_buf != nullptr) buf = save_buf; 

However, the local variable buf is not unused any more in this function. 

Is there anything missed from this function that should make use of this buf assignment?

How to repeat:
It's in mysql-8.0.21
[26 Oct 2020 11:55] MySQL Verification Team
Hi Mr. Zhong,

Thank you for your bug report.

I have analysed the entire code and I can't find a justification on why is that part line necessary, at all.

This is , however, a very low priority bug.

Verified as reported.
[29 Oct 2020 7:37] Li Zhong
Thanks for your confirmation!