diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-02-15 09:50:03 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-02-15 10:01:05 +0200 |
commit | 27ea2963fce74f9f597f63eab0df63e395efcc50 (patch) | |
tree | 6b36564ea578dfd8326d0cb1b3df9b4a8f167af2 /storage/innobase/trx/trx0sys.cc | |
parent | 7baea2efa2093cd84b9c972fa1707e6235779e75 (diff) | |
download | mariadb-git-27ea2963fce74f9f597f63eab0df63e395efcc50.tar.gz |
Dead code removal: sess_t
The session object is not really needed for anything.
We can directly create and free the dummy purge_sys->query->trx.
Diffstat (limited to 'storage/innobase/trx/trx0sys.cc')
-rw-r--r-- | storage/innobase/trx/trx0sys.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/storage/innobase/trx/trx0sys.cc b/storage/innobase/trx/trx0sys.cc index 393dff8c026..f7404e8a303 100644 --- a/storage/innobase/trx/trx0sys.cc +++ b/storage/innobase/trx/trx0sys.cc @@ -500,8 +500,6 @@ trx_sys_init_at_db_start() mtr.commit(); ut_d(trx_sys->rw_max_trx_id = trx_sys->max_trx_id); - trx_dummy_sess = sess_open(); - trx_lists_init_at_db_start(); /* This mutex is not strictly required, it is here only to satisfy @@ -928,11 +926,6 @@ trx_sys_close(void) " shutdown: " << size << " read views open"; } - if (trx_dummy_sess) { - sess_close(trx_dummy_sess); - trx_dummy_sess = NULL; - } - /* Only prepared transactions may be left in the system. Free them. */ ut_a(UT_LIST_GET_LEN(trx_sys->rw_trx_list) == trx_sys->n_prepared_trx || !srv_was_started |