Vladislav Vaintroub
4ffc9c3b01
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.
2012-11-02 10:43:52 +01:00
Vladislav Vaintroub
550d6871a5
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.
2012-05-03 02:47:06 +02:00
Sergei Golubchik
b43494620f
mdev-208 thread pool breaks the server on XP
2012-04-05 15:57:27 +02:00
Vladislav Vaintroub
ec032ae54b
Windows threadpool - always disassociate current thread from callback when destroying connection
...
prior to closing callbacks and calling DestroyThreadpoolEnvironment, to make sure callbacks
do not wait for themselves to finish.
2012-03-28 01:11:05 +02:00
Vladislav Vaintroub
b932e57b27
Store callback instance in the connection structure, to call CallbackMayRunLong on long
...
waits (currently binlog only)
Also add copyright notice.
2012-02-17 23:23:54 +01:00
Vladislav Vaintroub
804f3bfeaf
Threadpool : Rest of monty's review
2012-01-27 19:52:53 +01:00
Vladislav Vaintroub
8b945a1419
close callbacks prior to closing connection to avoid potential race when e.g timer callback and connection_destroy run in parallel
2012-01-27 00:39:23 +01:00
Vladislav Vaintroub
57b6cb39aa
Further review points and simplify Windows implementation
2012-01-26 04:35:54 +01:00
Vladislav Vaintroub
d50649ecf7
small cleanups
2012-01-24 03:23:14 +01:00
Vladislav Vaintroub
d212991e89
Get rid of idle thread counter atomic variable.
...
Instead, use function that loops over groups and
calculates idle threads for "show status".
2012-01-15 15:41:25 +01:00
Vladislav Vaintroub
a5a22e9f64
Small adjustements to threadpool
2011-12-18 20:40:38 +01:00
Vladislav Vaintroub
e91bbca5fb
Initial threadpool implementation for MariaDB 5.5
2011-12-08 19:17:49 +01:00