mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
BUG#50780: 'show binary logs' debug assertion when binary
logging is disabled The server would hit an assertion because of a DBUG violation. There was a missing DBUG_RETURN and instead a plain return was used. This patch replaces the return with DBUG_RETURN.
This commit is contained in:
2
mysql-test/r/no_binlog.result
Normal file
2
mysql-test/r/no_binlog.result
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SHOW BINARY LOGS;
|
||||||
|
ERROR HY000: You are not using binary logging
|
4
mysql-test/t/no_binlog.test
Normal file
4
mysql-test/t/no_binlog.test
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# BUG#50780: 'show binary logs' debug assertion when binary logging is disabled
|
||||||
|
|
||||||
|
-- error ER_NO_BINARY_LOGGING
|
||||||
|
SHOW BINARY LOGS;
|
@ -1606,7 +1606,7 @@ bool show_binlogs(THD* thd)
|
|||||||
if (!mysql_bin_log.is_open())
|
if (!mysql_bin_log.is_open())
|
||||||
{
|
{
|
||||||
my_message(ER_NO_BINARY_LOGGING, ER(ER_NO_BINARY_LOGGING), MYF(0));
|
my_message(ER_NO_BINARY_LOGGING, ER(ER_NO_BINARY_LOGGING), MYF(0));
|
||||||
return 1;
|
DBUG_RETURN(TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
field_list.push_back(new Item_empty_string("Log_name", 255));
|
field_list.push_back(new Item_empty_string("Log_name", 255));
|
||||||
|
Reference in New Issue
Block a user