mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV-21336 Memory leaks related to innodb_debug_sync
This essentially reverts commitb393e2cb0c. The leak might have been fixed, but because the DEBUG_SYNC instrumentation for InnoDB purge threads was reverted in 10.5 commit5e62b6a5e0as part of introducing a thread pool, it is easiest to revert the entire change.
This commit is contained in:
parent
a12aed0398
commit
fc58c17216
9 changed files with 0 additions and 202 deletions
|
|
@ -2600,13 +2600,6 @@ DECLARE_THREAD(srv_worker_thread)(
|
|||
|
||||
slot = srv_reserve_slot(SRV_WORKER);
|
||||
|
||||
#ifdef UNIV_DEBUG
|
||||
UT_LIST_INIT(slot->debug_sync,
|
||||
&srv_slot_t::debug_sync_t::debug_sync_list);
|
||||
rw_lock_create(PFS_NOT_INSTRUMENTED, &slot->debug_sync_lock,
|
||||
SYNC_NO_ORDER_CHECK);
|
||||
#endif
|
||||
|
||||
ut_a(srv_n_purge_threads > 1);
|
||||
ut_a(ulong(my_atomic_loadlint(&srv_sys.n_threads_active[SRV_WORKER]))
|
||||
< srv_n_purge_threads);
|
||||
|
|
@ -2854,12 +2847,6 @@ DECLARE_THREAD(srv_purge_coordinator_thread)(
|
|||
|
||||
slot = srv_reserve_slot(SRV_PURGE);
|
||||
|
||||
#ifdef UNIV_DEBUG
|
||||
UT_LIST_INIT(slot->debug_sync,
|
||||
&srv_slot_t::debug_sync_t::debug_sync_list);
|
||||
rw_lock_create(PFS_NOT_INSTRUMENTED, &slot->debug_sync_lock,
|
||||
SYNC_NO_ORDER_CHECK);
|
||||
#endif
|
||||
ulint rseg_history_len = trx_sys->rseg_history_len;
|
||||
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue