Bug #19313 mysqld: -1 files and 0 streams is left open
Submitted: 24 Apr 2006 23:07 Modified: 5 May 2006 15:17
Reporter: Sergei Golubchik
Status: Closed
Category:Server: Partition Severity:S3 (Non-critical)
Version:5.1 OS:
Assigned to: Mikael Ronstrom Target Version:

[24 Apr 2006 23:07] Sergei Golubchik
Description:
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 23: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:

  http://lists.mysql.com/commits/5520
[4 May 2006 13:54] Mikael Ronstrom
Will appear in 5.1.10
[5 May 2006 15: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
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 5.1.10 changelog; closed.