summaryrefslogtreecommitdiff
path: root/storage/innobase/srv/srv0srv.c
diff options
context:
space:
mode:
authorSunny Bains <Sunny.Bains@Oracle.Com>2010-05-11 12:57:11 +1000
committerSunny Bains <Sunny.Bains@Oracle.Com>2010-05-11 12:57:11 +1000
commite50bf39eba84dd299042fef36d7af46cea81f29b (patch)
tree28dd7127b5727e14af4c3a6e0470d744181959a2 /storage/innobase/srv/srv0srv.c
parenta6226390cc34b1db8efc7a3cfb5826bfab336c65 (diff)
downloadmariadb-git-e50bf39eba84dd299042fef36d7af46cea81f29b.tar.gz
Second part of the fix for bug#53499. We decrement the active thread count
when the purge thread completes by calling srv_suspend_thread().
Diffstat (limited to 'storage/innobase/srv/srv0srv.c')
-rw-r--r--storage/innobase/srv/srv0srv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/innobase/srv/srv0srv.c b/storage/innobase/srv/srv0srv.c
index 11448e4e166..5445bd264d8 100644
--- a/storage/innobase/srv/srv0srv.c
+++ b/storage/innobase/srv/srv0srv.c
@@ -3236,6 +3236,9 @@ srv_purge_thread(
srv_sync_log_buffer_in_background();
}
+ /* Decrement the active count. */
+ srv_suspend_thread();
+
/* Free the thread local memory. */
thr_local_free(os_thread_get_curr_id());