Bug #19313 mysqld: -1 files and 0 streams is left open
Submitted: 24 Apr 2006 21:07 Modified: 5 May 2006 13:17
Reporter: Sergei Golubchik Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Partitions Severity:S3 (Non-critical)
Version:5.1 OS:
Assigned to: Mikael Ronström CPU Architecture:Any

[24 Apr 2006 21:07] Sergei Golubchik
when mysqld exits:

060424 14:04:24 [Note] Got signal 15 to shutdown mysqld
060424 14:04:24 [Note] /usr/home/serg/Abk/mysql-5.1/sql/mysqld: Normal shutdown
060424 14:04:24 [Note] /usr/home/serg/Abk/mysql-5.1/sql/mysqld: Shutdown complete

/usr/home/serg/Abk/mysql-5.1/sql/mysqld: -1 files and 0 streams is left open

this happens because release_ddl_log() calls my_close(global_ddl_log.file_id, MYF(0)) unconditionally, even if global_ddl_log.file_id is -1.

How to repeat:
build with dbug, start mysqld, stop mysqld

Suggested fix:
don't try to close what you is not open
[25 Apr 2006 21:31] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

[4 May 2006 11:54] Mikael Ronström
Will appear in 5.1.10
[5 May 2006 13:17] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at

Additional info:

Documented bugfix in 5.1.10 changelog; closed.