mariadb/storage/innobase/trx
Marko Mäkelä 7a30d86e9d Simplify InnoDB startup.
InnoDB needs to collect transactions from the persistent data files
in trx_rseg_array_init() before trx_lists_init_at_db_start() is
executed. But there is no need to create purge_sys->purge_queue
separately from purge_sys.

trx_sys_init_at_db_start(): Change the return type to void.
Remove the direct call to trx_rseg_array_init(). It will be called
by trx_lists_init_at_db_start(), which we are calling.
Initialize the purge system read view.

trx_lists_init_at_db_start(): Call trx_purge_sys_create(), which will
invoke trx_rseg_array_init() to read the undo log segments.

trx_purge_sys_create(): Remove the parameters. Do not initialize
the purge system read view, because trx_sys->rw_trx_list has not
been recovered yet. The purge_sys->view will be initialized at
the end of trx_sys_init_at_db_start().

trx_rseg_array_init(): Remove the parameter. Use purge_sys->purge_queue
directly.

innobase_start_or_create_for_mysql(): Remove the local variable
purge_queue. Do not call trx_purge_sys_create(), because it will be
called by trx_sys_init_at_db_start().
2017-03-09 17:28:06 +02:00
..
trx0i_s.cc MDEV-12121 Introduce build option WITH_INNODB_AHI to disable innodb_adaptive_hash_index 2017-03-03 16:55:50 +02:00
trx0purge.cc Simplify InnoDB startup. 2017-03-09 17:28:06 +02:00
trx0rec.cc Remove trx_sys_t::pending_purge_rseg_array. 2017-03-09 15:58:33 +02:00
trx0roll.cc MDEV-11236 Failing assertion: state == TRX_STATE_NOT_STARTED 2016-12-02 16:44:53 +02:00
trx0rseg.cc Simplify InnoDB startup. 2017-03-09 17:28:06 +02:00
trx0sys.cc Simplify InnoDB startup. 2017-03-09 17:28:06 +02:00
trx0trx.cc Simplify InnoDB startup. 2017-03-09 17:28:06 +02:00
trx0undo.cc Relax assertions on shutdown after aborted startup. 2017-02-09 10:18:46 +02:00