diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2022-02-15 13:37:59 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2022-06-24 10:18:43 +0400 |
commit | 47ec1a49c5097a59431ac5e2dd742eaaac4cc6a2 (patch) | |
tree | d1e24dac098549c01b1801f393eef3516f549964 /sql/sql_class.h | |
parent | acdea5f43d863da49c1d0006d742fda10ac45384 (diff) | |
download | mariadb-git-bb-10.4-MDEV-27233.tar.gz |
MDEV-27832 disable binary logging for SQL SERVICE.bb-10.4-MDEV-27233
Binary logging is now disabled for the queries run by SQL SERVICE.
The binlogging can be turned on with the 'SET SQL_LOG_BIN=On' query.
Conflicts:
sql/sql_prepare.cc
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 7e4fd7749f4..c57f656b1f2 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -2832,6 +2832,13 @@ public: auto_inc_intervals_forced.empty(); // in case of multiple SET INSERT_ID auto_inc_intervals_forced.append(next_id, ULONGLONG_MAX, 0); } + inline void set_binlog_bit() + { + if (variables.sql_log_bin) + variables.option_bits |= OPTION_BIN_LOG; + else + variables.option_bits &= ~OPTION_BIN_LOG; + } ulonglong limit_found_rows; |