Bug #101366 In ib_sdi_flush(), parameter space_id does not get used at all

Submitted: 29 Oct 2020 7:31 Modified: 29 Oct 2020 12:41
Reporter: Li Zhong Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S4 (Feature request)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[29 Oct 2020 7:31] Li Zhong
Description:
In storage/innobase/api/api0api.cc, ib_sdi_flush(), parameter space_id does not get used at all. It's as follows:

/** Flush SDI in a tablespace. The pages of a SDI Index modified by the
transaction will be flushed to disk.
@param[in]      space_id        tablespace id
@return DB_SUCCESS always */
ib_err_t ib_sdi_flush(space_id_t space_id) { return (DB_SUCCESS); }

If space_id is truly not necessary here, I suggest it should be add with attribute MY_ATTRIBUTE(unused).

How to repeat:
In source code of mysql-8.0.21
[29 Oct 2020 12:41] MySQL Verification Team
Hi Mr. Zhong,

Thank you for your bug report.

It does make sense to make it noted as unused, since this function used to have even more parameters.

Verified as reported, but with a lower severity, due to the lack of impact.
[29 Oct 2020 12:42] MySQL Verification Team
Just setting a version.

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

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