summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorKristofer.Pettersson@naruto. <>2006-12-01 09:49:19 +0100
committerKristofer.Pettersson@naruto. <>2006-12-01 09:49:19 +0100
commit6c8d7ea8949eb938b1428ab85d199c6dfcbc2576 (patch)
treecf32823947bbb9254c2685b380726922c6bb676e /mysql-test
parent8471897fbc01520bfdf93a7105019e17cdbca89e (diff)
downloadmariadb-git-6c8d7ea8949eb938b1428ab85d199c6dfcbc2576.tar.gz
Bug#17733 Flushing logs causes daily server crash
Server crashes if a flush commmand is issued and binlog is closed. - added check to prevent binlog access when binlog file isn't opened.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/flush2.result24
-rw-r--r--mysql-test/t/flush2-master.opt1
-rw-r--r--mysql-test/t/flush2.test9
3 files changed, 34 insertions, 0 deletions
diff --git a/mysql-test/r/flush2.result b/mysql-test/r/flush2.result
new file mode 100644
index 00000000000..7c94219fd71
--- /dev/null
+++ b/mysql-test/r/flush2.result
@@ -0,0 +1,24 @@
+flush logs;
+set global expire_logs_days = 3;
+show variables like 'log%';
+Variable_name Value
+log ON
+log_bin OFF
+log_bin_trust_function_creators ON
+log_error
+log_queries_not_using_indexes OFF
+log_slave_updates OFF
+log_slow_queries OFF
+log_warnings 1
+flush logs;
+show variables like 'log%';
+Variable_name Value
+log ON
+log_bin OFF
+log_bin_trust_function_creators ON
+log_error
+log_queries_not_using_indexes OFF
+log_slave_updates OFF
+log_slow_queries OFF
+log_warnings 1
+set global expire_logs_days = 0;
diff --git a/mysql-test/t/flush2-master.opt b/mysql-test/t/flush2-master.opt
new file mode 100644
index 00000000000..ccbd01c91d3
--- /dev/null
+++ b/mysql-test/t/flush2-master.opt
@@ -0,0 +1 @@
+--disable-log-bin
diff --git a/mysql-test/t/flush2.test b/mysql-test/t/flush2.test
new file mode 100644
index 00000000000..fc9e88e3141
--- /dev/null
+++ b/mysql-test/t/flush2.test
@@ -0,0 +1,9 @@
+#
+# Bug#17733 Flushing logs causes daily server crash
+#
+flush logs;
+set global expire_logs_days = 3;
+show variables like 'log%';
+flush logs;
+show variables like 'log%';
+set global expire_logs_days = 0;