Skip to content

Commit bffae9c

Browse files
committed
squash! 55d2ec1
trx_purge_attach_undo_recs(), purge_sys_t::batch_cleanup(): Clear purge_sys.m_active only after all table handles have been released.
1 parent 55d2ec1 commit bffae9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/innobase/trx/trx0purge.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1293,8 +1293,6 @@ static purge_sys_t::iterator trx_purge_attach_undo_recs(THD *thd,
12931293
break;
12941294
}
12951295

1296-
purge_sys.m_active= false;
1297-
12981296
#ifdef UNIV_DEBUG
12991297
thr= UT_LIST_GET_FIRST(purge_sys.query->thrs);
13001298
for (ulint i= 0; thr && i < *n_work_items;
@@ -1343,6 +1341,8 @@ static void trx_purge_wait_for_workers_to_complete()
13431341
TRANSACTIONAL_INLINE
13441342
void purge_sys_t::batch_cleanup(const purge_sys_t::iterator &head)
13451343
{
1344+
m_active= false;
1345+
13461346
/* Release the undo pages. */
13471347
for (auto p : pages)
13481348
p.second->unfix();

0 commit comments

Comments
 (0)