summaryrefslogtreecommitdiff
path: root/sql/sys_vars.cc
diff options
context:
space:
mode:
authorKristian Nielsen <knielsen@knielsen-hq.org>2016-11-03 14:48:51 +0100
committerKristian Nielsen <knielsen@knielsen-hq.org>2016-11-03 14:48:51 +0100
commitb002509b67860df9f0634709b5fb8a2ab98d130a (patch)
tree3c1fb6c45a3a2275efc18e003bae531e81b3395e /sql/sys_vars.cc
parentd665e79c5b8582f44dc280e5e6df4a8ff4945623 (diff)
parent56a041cde657e5618c519a3c50e8075136d4a1ce (diff)
downloadmariadb-git-b002509b67860df9f0634709b5fb8a2ab98d130a.tar.gz
MDEV-11065: Compressed binary log. Merge code into current 10.2.
Conflicts: sql/share/errmsg-utf8.txt
Diffstat (limited to 'sql/sys_vars.cc')
-rw-r--r--sql/sys_vars.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sys_vars.cc b/sql/sys_vars.cc
index b6359ffbd48..27e6463eb58 100644
--- a/sql/sys_vars.cc
+++ b/sql/sys_vars.cc
@@ -1157,6 +1157,18 @@ static Sys_var_mybool Sys_log_bin(
"log_bin", "Whether the binary log is enabled",
READ_ONLY GLOBAL_VAR(opt_bin_log), NO_CMD_LINE, DEFAULT(FALSE));
+static Sys_var_mybool Sys_log_bin_compress(
+ "log_bin_compress", "Whether the binary log can be compressed",
+ GLOBAL_VAR(opt_bin_log_compress), CMD_LINE(OPT_ARG), DEFAULT(FALSE));
+
+/* the min length is 10, means that Begin/Commit/Rollback would never be compressed! */
+static Sys_var_uint Sys_log_bin_compress_min_len(
+ "log_bin_compress_min_len",
+ "Minimum length of sql statement(in statement mode) or record(in row mode)"
+ "that can be compressed.",
+ GLOBAL_VAR(opt_bin_log_compress_min_len),
+ CMD_LINE(OPT_ARG), VALID_RANGE(10, 1024), DEFAULT(256), BLOCK_SIZE(1));
+
static Sys_var_mybool Sys_trust_function_creators(
"log_bin_trust_function_creators",
"If set to FALSE (the default), then when --log-bin is used, creation "