summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-06-18 11:10:53 +0300
committerMonty <monty@mariadb.org>2020-06-19 12:03:13 +0300
commit1a49c5eb4d11dd6a35d293856281239d8e459582 (patch)
tree262a3904cbe838fa5ac325a3185ed67595ea5b0c /sql/sql_class.cc
parent605555fc31784302a54d398d9503ca1e9e4bdec9 (diff)
downloadmariadb-git-1a49c5eb4d11dd6a35d293856281239d8e459582.tar.gz
Cleanup's and more DBUG_PRINT's
- Rewrote bool Query_compressed_log_event::write() to make it more readable (no logic changes). - Changed DBUG_PRINT of 'is_error:' to 'is_error():' to make it easier to find error: in traces. - Ensure that 'db' is never null in Query_log_event (Simplified code).
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 23176d5a1db..c370008d96e 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -7368,7 +7368,7 @@ int THD::binlog_query(THD::enum_binlog_query_type qtype, char const *query_arg,
log event is written to the binary log, we pretend that no
table maps were written.
*/
- if(binlog_should_compress(query_len))
+ if (binlog_should_compress(query_len))
{
Query_compressed_log_event qinfo(this, query_arg, query_len, is_trans, direct,
suppress_use, errcode);