summaryrefslogtreecommitdiff
path: root/sql/threadpool_win.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-11-02 10:43:52 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-11-02 10:43:52 +0100
commit4ffc9c3b01459a2904a7154a6c750d128864fc7b (patch)
treed482bfdf461dc06616cfb23b61c1045a04b1b15d /sql/threadpool_win.cc
parent27bcea09e5230757071d27b91402647a9e0b4713 (diff)
downloadmariadb-git-4ffc9c3b01459a2904a7154a6c750d128864fc7b.tar.gz
MDEV-531 : Warning: Forcing close of thread ... in rpl_binlog_index
Use post_kill_notification in for one_thread_per_connection scheduler, the same as already used in threadpool, to reliably wake a thread stuck in read() or in different poll() variations.
Diffstat (limited to 'sql/threadpool_win.cc')
-rw-r--r--sql/threadpool_win.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/sql/threadpool_win.cc b/sql/threadpool_win.cc
index 6359f81cd2b..72e03da2453 100644
--- a/sql/threadpool_win.cc
+++ b/sql/threadpool_win.cc
@@ -544,22 +544,6 @@ void tp_end(void)
}
}
-/**
- Notify pool about connection being killed.
-*/
-void tp_post_kill_notification(THD *thd)
-{
- if (current_thd == thd)
- return; /* There is nothing to do.*/
-
- if (thd->system_thread)
- return; /* Will crash if we attempt to kill system thread. */
-
- Vio *vio= thd->net.vio;
-
- vio_shutdown(vio, SD_BOTH);
-
-}
/*
Handle read completion/notification.