summaryrefslogtreecommitdiff
path: root/mysql-test/t/flush2.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/t/flush2.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/t/flush2.test')
-rw-r--r--mysql-test/t/flush2.test9
1 files changed, 9 insertions, 0 deletions
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;