Bug #65481 | Sending SIGHUP does not work as explained in the manual | ||
---|---|---|---|
Submitted: | 1 Jun 2012 0:16 | Modified: | 25 Apr 2013 11:24 |
Reporter: | Fernando Ipar (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.5.17 | OS: | Linux |
Assigned to: | Paul DuBois | CPU Architecture: | Any |
[1 Jun 2012 0:16]
Fernando Ipar
[1 Jun 2012 5:51]
Valeriy Kravchuk
http://dev.mysql.com/doc/refman/5.5/en/server-signal-response.html also says nothing about flushing tables by SIGHUP.
[1 Jun 2012 10:09]
Valeriy Kravchuk
This is what I see in current mysql-5.5 (sql/mysqld.cc starting at line 2722): ... case SIGHUP: if (!abort_loop) { int not_used; mysql_print_status(); // Print some debug info reload_acl_and_cache((THD*) 0, (REFRESH_LOG | REFRESH_TABLES | REFRESH_FAST | REFRESH_GRANT | REFRESH_THREADS | REFRESH_HOSTS), (TABLE_LIST*) 0, ¬_used); // Flush logs } ... So, we do pass REFRESH_TABLES option and thus equivalent of FLUSH TABLES happens. I let documentation team to find out if this is intended and process this bug accordingly. For now I consider this a documentation problem.
[25 Apr 2013 11:24]
Paul DuBois
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products. Modified FLUSH and server-signals sections as follows: http://dev.mysql.com/doc/refman/5.5/en/flush.html Sending a SIGHUP signal to the server causes several flush operations to occur that are similar to various forms of the FLUSH statement. See Section 5.1.11, “Server Response to Signals”. http://dev.mysql.com/doc/refman/5.5/en/server-signal-response.html SIGHUP causes the server to reload the grant tables and to flush tables, logs, the thread cache, and the host cache. These actions are like various forms of the FLUSH statement.