1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

print binlog unsafe errors at log_warnings level 1, not 2.

This commit is contained in:
Sergei Golubchik
2014-09-18 15:24:30 +02:00
parent 8286bcd721
commit 152f1cd086
2 changed files with 2 additions and 2 deletions

View File

@@ -6145,7 +6145,7 @@ void THD::issue_unsafe_warnings()
ER_BINLOG_UNSAFE_STATEMENT,
ER(ER_BINLOG_UNSAFE_STATEMENT),
ER(LEX::binlog_stmt_unsafe_errcode[unsafe_type]));
if (global_system_variables.log_warnings > 1 &&
if (global_system_variables.log_warnings > 0 &&
!protect_against_unsafe_warning_flood(unsafe_type))
print_unsafe_warning_to_log(unsafe_type, buf, query());
}