summaryrefslogtreecommitdiff
path: root/storage/innobase/trx
diff options
context:
space:
mode:
authorNikita Malyavin <nikitamalyavin@gmail.com>2019-07-25 22:17:04 +1000
committerNikita Malyavin <nikitamalyavin@gmail.com>2019-10-11 17:02:39 +1000
commitb393e2cb0c079b30563dcc87a62002c9c778643c (patch)
tree419adba84f3f3006a192f08f3465d2872cafa41c /storage/innobase/trx
parent6d7a8269532f4989b1515f259120e91019a74dec (diff)
downloadmariadb-git-b393e2cb0c079b30563dcc87a62002c9c778643c.tar.gz
add innodb_debug_sync var to support DEBUG_SYNC from purge threads
Diffstat (limited to 'storage/innobase/trx')
-rw-r--r--storage/innobase/trx/trx0purge.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/storage/innobase/trx/trx0purge.cc b/storage/innobase/trx/trx0purge.cc
index 78bf2fc29b8..732435ccefb 100644
--- a/storage/innobase/trx/trx0purge.cc
+++ b/storage/innobase/trx/trx0purge.cc
@@ -1675,7 +1675,12 @@ trx_purge(
to submit to the work queue */
ulint batch_size, /*!< in: the maximum number of records
to purge in one batch */
- bool truncate) /*!< in: truncate history if true */
+ bool truncate /*!< in: truncate history if true */
+#ifdef UNIV_DEBUG
+ , srv_slot_t *slot /*!< in/out: purge coordinator
+ thread slot */
+#endif
+)
{
que_thr_t* thr = NULL;
ulint n_pages_handled;
@@ -1730,6 +1735,7 @@ trx_purge(
run_synchronously:
++purge_sys->n_submitted;
+ ut_d(thr->thread_slot = slot);
que_run_threads(thr);
my_atomic_addlint(