Bug #108518 Return value of flush_io_cache() not get checked
Submitted: 16 Sep 2022 1:56 Modified: 16 Sep 2022 6:05
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.21 OS:Any
Assigned to: CPU Architecture:Any

[16 Sep 2022 1:56] Li Zhong
Description:
In https://github.com/mysql/mysql-server/blob/mysql-cluster-8.0.21/mysys/mf_iocache.cc#L677, flush_io_cache() can return error code but it's now unchecked.

How to repeat:
We find this by our static analysis tool. The analysis result is checked manually.

Suggested fix:
Add the check on it.
[16 Sep 2022 6:05] MySQL Verification Team
Hello Li Zhong,

Thank you for the report and feedback.

regards,
Umesh