Bug #116175 The declaration of dd_set_autoinc is repeated.
Submitted: 20 Sep 2024 8:35 Modified: 8 Nov 2024 1:47
Reporter: jie xu Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: DDL Severity:S3 (Non-critical)
Version:all OS:Any
Assigned to: CPU Architecture:Any

[20 Sep 2024 8:35] jie xu
Description:
In the file storage/innobase/include/dict0dd.h, the dd_set_autoinc function has two identical declarations in the same scope. Moreover, in the file storage/innobase/dict/dict0dd.cc, there is only one implementation of the dd_set_autoinc function.

How to repeat:
read newest code.

Suggested fix:
Delete the redundant declarations of the dd_set_autoinc function in the storage/innobase/include/dict0dd.h file.
[20 Sep 2024 11:48] MySQL Verification Team
Hi Mr. xu,

Thank you very much for your bug report.

However, this is not a bug.

Both declarations in the include files are 100 % identical, that is why we do not get any warnings nor errors from compiler.

The identical declarations are allowed according to C++ standard, but we shall inform Development to remove a duplicate.

Not a bug.
[20 Sep 2024 12:01] jie xu
Of course, this is not a bug;
however, it confuses me a lot when I read the code.

Thank you!
[23 Sep 2024 8:31] MySQL Verification Team
This bug is now verified.
[8 Nov 2024 1:47] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Server 9.2.0 release, and here's the proposed changelog entry from the documentation team:

Removed a duplicate declaration of the dd_set_autoinc() method.

Thank you for the bug report.