Bug #70212 Unused function buf_flush_get_dirty_pages_count

Submitted: 2 Sep 2013 10:27 Modified: 2 Sep 2013 11:16
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S3 (Non-critical)
Version:5.6 OS:Any
Assigned to: CPU Architecture:Any

[2 Sep 2013 10:27] Laurynas Biveinis
Description:
Function buf_flush_get_dirty_pages_count() is defined but not used anywhere.

How to repeat:
5.6$ grep -r buf_flush_get_dirty_pages_count *

storage/innobase/buf/buf0flu.cc:buf_flush_get_dirty_pages_count(
storage/innobase/include/buf0flu.h:buf_flush_get_dirty_pages_count(

Suggested fix:
Remove it.

buf_pool_get_dirty_pages_count() then becomes used from buf0lru.cc only, maybe can be moved there and made static.
[2 Sep 2013 11:16] MySQL Verification Team
Hello Laurynas,

Thank you for the bug report. 
Verified as described.

Thanks,
Umesh

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

Page generated in 0.038 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.