Bug #103788 Error in PFS_notification_registry's impl

Submitted: 24 May 2021 12:29 Modified: 3 Jun 2021 18:07
Reporter: xiaoyu wang (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Performance Schema Severity:S3 (Non-critical)
Version:MySQL Server 8.0.25 Community OS:Any
Assigned to: Marc ALFF CPU Architecture:Any
Tags: Contribution, perfschema

[24 May 2021 12:29] xiaoyu wang
Description:
storage/perfschema/service_pfs_notification.cc : L139

bool is_empty() { return m_count > 0; }

Shouldn't it be { return m_count == 0 } ? Besides, is_empty() isn't used.

How to repeat:
Read the source code.
[24 May 2021 12:29] xiaoyu wang
fix it

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

Contribution: fix.patch (application/octet-stream, text), 439 bytes.

[24 May 2021 12:39] MySQL Verification Team
Hello xiaoyu wang,

Thank you for the report and contribution.

regards,
Umesh
[3 Jun 2021 18:07] Paul DuBois
Posted by developer:
 
Fixed in 8.0.26.

Thanks to Xiaoyu Wang for a code correction to
PFS_notification_registry::is_empty().

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.054 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.