Skip to content

Commit

Permalink
Extend trx_trx library
Browse files Browse the repository at this point in the history
  • Loading branch information
romz-pl committed Sep 6, 2019
1 parent 453eb88 commit 64a9b65
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 24 deletions.
3 changes: 3 additions & 0 deletions storage/innobase/handler/ha_innodb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ this program; if not, write to the Free Software Foundation, Inc.,
#include "my_config.h"
#endif /* !UNIV_HOTBACKUP */

#include <innodb/trx_trx/trx_is_high_priority.h>
#include <innodb/trx_trx/trx_is_rseg_updated.h>
#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/trx_trx/trx_get_error_index.h>
#include <innodb/trx_trx/trx_is_redo_rseg_updated.h>
#include <innodb/memory_check/memory_check.h>
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/handler/p_s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
*******************************************************/

#include <innodb/trx_trx/trx_get_id_for_print.h>
#include "storage/innobase/handler/p_s.h"

#include <stdlib.h>
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/include/trx0sys.ic
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ this program; if not, write to the Free Software Foundation, Inc.,
Created 3/26/1996 Heikki Tuuri
*******************************************************/

#include <innodb/trx_trx/trx_reference.h>
#include <innodb/trx_trx/assert_trx_in_rw_list.h>
#include <innodb/trx_types/TrxIdSet.h>
#include <innodb/trx_types/TrxTrack.h>
#include <innodb/mtr/mtr_read_ulint.h>
Expand Down
25 changes: 1 addition & 24 deletions storage/innobase/include/trx0trx.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
#include <innodb/univ/univ.h>


#include <innodb/trx_trx/trx_is_rseg_updated.h>
#include <innodb/trx_trx/trx_is_rseg_assigned.h>
#include <innodb/trx_trx/trx_get_que_state_str.h>
#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/trx_trx/trx_reference.h>
#include <innodb/trx_trx/trx_release_reference.h>
#include <innodb/trx_trx/trx_is_referenced.h>
#include <innodb/trx_trx/trx_arbitrate.h>
#include <innodb/trx_trx/trx_is_high_priority.h>
#include <innodb/trx_trx/trx_is_rseg_updated.h>
#include <innodb/trx_trx/trx_is_autocommit_non_locking.h>
#include <innodb/trx_trx/trx_is_ac_nl_ro.h>
#include <innodb/trx_trx/assert_trx_in_rw_list.h>
#include <innodb/trx_trx/check_trx_state.h>
#include <innodb/trx_trx/lock_pool_t.h>
#include <innodb/trx_trx/trx_mod_tables_t.h>
#include <innodb/trx_trx/trx_undo_ptr_t.h>
#include <innodb/trx_trx/trx_rsegs_t.h>
#include <innodb/trx_trx/TrxVersion.h>
#include <innodb/trx_trx/hit_list_t.h>
#include <innodb/trx_trx/trx_t.h>
#include <innodb/trx_trx/trx_mutex_own.h>
#include <innodb/trx_trx/trx_mutex_enter.h>
#include <innodb/trx_trx/trx_mutex_exit.h>


#include <list>
#include <set>
Expand Down
5 changes: 5 additions & 0 deletions storage/innobase/lock/lock0lock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ this program; if not, write to the Free Software Foundation, Inc.,

#define LOCK_MODULE_IMPLEMENTATION

#include <innodb/trx_trx/trx_is_referenced.h>
#include <innodb/trx_trx/trx_is_high_priority.h>
#include <innodb/trx_trx/trx_arbitrate.h>
#include <innodb/trx_trx/trx_release_reference.h>
#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/trx_trx/trx_get_read_view.h>
#include <innodb/trx_trx/trx_get_dict_operation.h>
#include <innodb/trx_trx/thd_trx_priority.h>
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/lock/lock0wait.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ this program; if not, write to the Free Software Foundation, Inc.,

#define LOCK_MODULE_IMPLEMENTATION

#include <innodb/trx_trx/trx_is_high_priority.h>
#include <mysql/service_thd_wait.h>
#include <sys/types.h>
#include <time.h>
Expand Down
1 change: 1 addition & 0 deletions storage/innobase/row/row0vers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ this program; if not, write to the Free Software Foundation, Inc.,
Created 2/6/1997 Heikki Tuuri
*******************************************************/

#include <innodb/trx_trx/trx_release_reference.h>
#include <innodb/cmp/cmp_dfield_dfield.h>
#include <innodb/cmp/cmp_dtuple_rec.h>
#include <innodb/data_types/dfield_is_null.h>
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/trx/trx0i_s.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ this program; if not, write to the Free Software Foundation, Inc.,
From the symptoms, this is related to bug#46587 in the MySQL bug DB.
*/

#include <innodb/trx_trx/trx_get_que_state_str.h>
#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/sync_mutex/mutex_free.h>
#include <innodb/mtr/mtr_start.h>
#include <innodb/allocator/ut_malloc_nokey.h>
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/trx/trx0roll.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ this program; if not, write to the Free Software Foundation, Inc.,

#include <sys/types.h>

#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/trx_trx/trx_is_rseg_updated.h>
#include <innodb/trx_trx/trx_is_temp_rseg_updated.h>
#include <innodb/trx_trx/trx_is_redo_rseg_updated.h>
#include <innodb/memory/mem_heap_zalloc.h>
Expand Down
2 changes: 2 additions & 0 deletions storage/innobase/trx/trx0trx.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ this program; if not, write to the Free Software Foundation, Inc.,
Created 3/26/1996 Heikki Tuuri
*******************************************************/

#include <innodb/trx_trx/trx_is_rseg_updated.h>
#include <innodb/trx_trx/trx_get_id_for_print.h>
#include <innodb/trx_trx/trx_is_temp_rseg_updated.h>
#include <innodb/trx_trx/trx_is_redo_rseg_updated.h>
#include <innodb/trx_trx/trx_set_dict_operation.h>
Expand Down

0 comments on commit 64a9b65

Please sign in to comment.