Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e168621d
Commit
e168621d
authored
Jul 26, 2010
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug #55395 INNODB_TRX duplicates columns
rb://408
approved by Sunny Bains
parent
3074ff52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
143 deletions
+3
-143
mysql-test/suite/innodb/r/innodb_information_schema.result
mysql-test/suite/innodb/r/innodb_information_schema.result
+1
-15
storage/innobase/handler/i_s.cc
storage/innobase/handler/i_s.cc
+2
-128
No files found.
mysql-test/suite/innodb/r/innodb_information_schema.result
View file @
e168621d
...
...
@@ -42,21 +42,7 @@ trx_isolation_level varchar(16) NO
trx_unique_checks int(1) NO 0
trx_foreign_key_checks int(1) NO 0
trx_last_foreign_key_error varchar(256) YES NULL
trx_apative_hash_latched int(1) NO 0
trx_adaptive_hash_timeout bigint(21) unsigned NO 0
trx_operation_state varchar(64) YES NULL
trx_tables_in_use bigint(21) unsigned NO 0
trx_tables_locked bigint(21) unsigned NO 0
trx_lock_structs bigint(21) unsigned NO 0
trx_lock_memory_bytes bigint(21) unsigned NO 0
trx_rows_locked bigint(21) unsigned NO 0
trx_rows_modified bigint(21) unsigned NO 0
trx_concurrency_tickets bigint(21) unsigned NO 0
trx_isolation_level varchar(16) NO
trx_unique_checks int(1) NO 0
trx_foreign_key_checks int(1) NO 0
trx_last_foreign_key_error varchar(256) YES NULL
trx_apative_hash_latched int(1) NO 0
trx_adaptive_hash_latched int(1) NO 0
trx_adaptive_hash_timeout bigint(21) unsigned NO 0
trx_state trx_weight trx_tables_in_use trx_tables_locked trx_rows_locked trx_rows_modified trx_concurrency_tickets trx_isolation_level trx_unique_checks trx_foreign_key_checks
RUNNING 4 0 0 7 1 0 REPEATABLE READ 1 1
...
...
storage/innobase/handler/i_s.cc
View file @
e168621d
...
...
@@ -401,133 +401,7 @@ static ST_FIELD_INFO innodb_trx_fields_info[] =
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ADAPTIVE_HASH_LATCHED 20
{
STRUCT_FLD
(
field_name
,
"trx_apative_hash_latched"
),
STRUCT_FLD
(
field_length
,
1
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
0
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ADAPTIVE_HASH_TIMEOUT 21
{
STRUCT_FLD
(
field_name
,
"trx_adaptive_hash_timeout"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_OPERATION_STATE 8
{
STRUCT_FLD
(
field_name
,
"trx_operation_state"
),
STRUCT_FLD
(
field_length
,
TRX_I_S_TRX_OP_STATE_MAX_LEN
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_STRING
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_MAYBE_NULL
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_TABLES_IN_USE 9
{
STRUCT_FLD
(
field_name
,
"trx_tables_in_use"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_TABLES_LOCKED 10
{
STRUCT_FLD
(
field_name
,
"trx_tables_locked"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_LOCK_STRUCTS 11
{
STRUCT_FLD
(
field_name
,
"trx_lock_structs"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_LOCK_MEMORY_BYTES 12
{
STRUCT_FLD
(
field_name
,
"trx_lock_memory_bytes"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ROWS_LOCKED 13
{
STRUCT_FLD
(
field_name
,
"trx_rows_locked"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ROWS_MODIFIED 14
{
STRUCT_FLD
(
field_name
,
"trx_rows_modified"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_CONNCURRENCY_TICKETS 15
{
STRUCT_FLD
(
field_name
,
"trx_concurrency_tickets"
),
STRUCT_FLD
(
field_length
,
MY_INT64_NUM_DECIMAL_DIGITS
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONGLONG
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_UNSIGNED
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ISOLATION_LEVEL 16
{
STRUCT_FLD
(
field_name
,
"trx_isolation_level"
),
STRUCT_FLD
(
field_length
,
TRX_I_S_TRX_ISOLATION_LEVEL_MAX_LEN
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_STRING
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
0
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_UNIQUE_CHECKS 17
{
STRUCT_FLD
(
field_name
,
"trx_unique_checks"
),
STRUCT_FLD
(
field_length
,
1
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONG
),
STRUCT_FLD
(
value
,
1
),
STRUCT_FLD
(
field_flags
,
0
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_FOREIGN_KEY_CHECKS 18
{
STRUCT_FLD
(
field_name
,
"trx_foreign_key_checks"
),
STRUCT_FLD
(
field_length
,
1
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONG
),
STRUCT_FLD
(
value
,
1
),
STRUCT_FLD
(
field_flags
,
0
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_LAST_FOREIGN_KEY_ERROR 19
{
STRUCT_FLD
(
field_name
,
"trx_last_foreign_key_error"
),
STRUCT_FLD
(
field_length
,
TRX_I_S_TRX_FK_ERROR_MAX_LEN
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_STRING
),
STRUCT_FLD
(
value
,
0
),
STRUCT_FLD
(
field_flags
,
MY_I_S_MAYBE_NULL
),
STRUCT_FLD
(
old_name
,
""
),
STRUCT_FLD
(
open_method
,
SKIP_OPEN_TABLE
)},
#define IDX_TRX_ADAPTIVE_HASH_LATCHED 20
{
STRUCT_FLD
(
field_name
,
"trx_apative_hash_latched"
),
{
STRUCT_FLD
(
field_name
,
"trx_adaptive_hash_latched"
),
STRUCT_FLD
(
field_length
,
1
),
STRUCT_FLD
(
field_type
,
MYSQL_TYPE_LONG
),
STRUCT_FLD
(
value
,
0
),
...
...
@@ -674,7 +548,7 @@ fill_innodb_trx_from_cache(
OK
(
field_store_string
(
fields
[
IDX_TRX_LAST_FOREIGN_KEY_ERROR
],
row
->
trx_foreign_key_error
));
/* trx_a
pa
tive_hash_latched */
/* trx_a
dap
tive_hash_latched */
OK
(
fields
[
IDX_TRX_ADAPTIVE_HASH_LATCHED
]
->
store
(
row
->
trx_has_search_latch
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment