mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fixed bug with the --slow-log when logging an administrator command
(like FLUSH TABLES). (Code is already in 4.0) sql/log.cc: Fixed bug with the --slow-log when logging an administrator command (like FLUSH TABLES).
This commit is contained in:
parent
723e70ebb7
commit
d26a7d483c
1 changed files with 1 additions and 0 deletions
|
@ -963,6 +963,7 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length,
|
|||
end=strxmov(buff, "# administrator command: ",
|
||||
command_name[thd->command], NullS);
|
||||
query_length=(ulong) (end-buff);
|
||||
query=buff;
|
||||
}
|
||||
if (my_b_write(&log_file, (byte*) query,query_length) ||
|
||||
my_b_write(&log_file, (byte*) ";\n",2) ||
|
||||
|
|
Loading…
Reference in a new issue