Skip to content

Commit db8b8d2

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

storage/innobase/trx/trx0purge.cc

+1-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;
@@ -1454,6 +1452,7 @@ TRANSACTIONAL_TARGET ulint trx_purge(ulint n_tasks, ulint history_size)
14541452
}
14551453
}
14561454

1455+
purge_sys.m_active= false;
14571456
purge_sys.batch_cleanup(head);
14581457

14591458
MONITOR_INC_VALUE(MONITOR_PURGE_INVOKED, 1);

0 commit comments

Comments
 (0)