summaryrefslogtreecommitdiff
path: root/mysql-test/r/aborted_clients.result
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-05-03 02:47:06 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2012-05-03 02:47:06 +0200
commit550d6871a5eb93013435055e11a4fe3009490c82 (patch)
treefc9c5e7298f04b9413d7638a0cf320b92b0b9c65 /mysql-test/r/aborted_clients.result
parent4cae07968c3d112adc1d7c16b6baf923d9a039a5 (diff)
downloadmariadb-git-550d6871a5eb93013435055e11a4fe3009490c82.tar.gz
MDEV-246 - Aborted_clients incremented during ordinary connection close
The problem was increment of aborted_threads variable due to thd->killed which was set when threadpool connection was terminated . The fix is not to set thd->killed anymore, there is no real reason for doing it.. Added a test that checks that status variable aborted_clients does not grow for ordinary disconnects, and that successful KILL increments this variable.
Diffstat (limited to 'mysql-test/r/aborted_clients.result')
-rw-r--r--mysql-test/r/aborted_clients.result10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/aborted_clients.result b/mysql-test/r/aborted_clients.result
new file mode 100644
index 00000000000..7111a0c98db
--- /dev/null
+++ b/mysql-test/r/aborted_clients.result
@@ -0,0 +1,10 @@
+FLUSH STATUS;
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
+VARIABLE_VALUE
+0
+KILL CONNECTION_ID();
+ERROR 70100: Connection was killed
+SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME='aborted_clients';
+VARIABLE_VALUE
+1
+FLUSH STATUS;