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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a9c095a0
Commit
a9c095a0
authored
Jan 06, 2011
by
Jimmy Yang
Browse files
Options
Browse Files
Download
Plain Diff
merge from mysql-5.1-innodb to mysql-5.5-innodb
parents
dead1dc4
25d285ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
storage/innobase/handler/i_s.cc
storage/innobase/handler/i_s.cc
+10
-2
storage/innobase/include/trx0i_s.h
storage/innobase/include/trx0i_s.h
+3
-0
storage/innobase/trx/trx0i_s.c
storage/innobase/trx/trx0i_s.c
+2
-1
No files found.
storage/innobase/handler/i_s.cc
View file @
a9c095a0
...
...
@@ -495,8 +495,16 @@ fill_innodb_trx_from_cache(
row
->
trx_mysql_thread_id
));
/* trx_query */
OK
(
field_store_string
(
fields
[
IDX_TRX_QUERY
],
row
->
trx_query
));
if
(
row
->
trx_query
)
{
/* store will do appropriate character set
conversion check */
fields
[
IDX_TRX_QUERY
]
->
store
(
row
->
trx_query
,
strlen
(
row
->
trx_query
),
row
->
trx_query_cs
);
fields
[
IDX_TRX_QUERY
]
->
set_notnull
();
}
else
{
fields
[
IDX_TRX_QUERY
]
->
set_null
();
}
/* trx_operation_state */
OK
(
field_store_string
(
fields
[
IDX_TRX_OPERATION_STATE
],
...
...
storage/innobase/include/trx0i_s.h
View file @
a9c095a0
...
...
@@ -140,6 +140,9 @@ struct i_s_trx_row_struct {
ulint
trx_mysql_thread_id
;
/*!< thd_get_thread_id() */
const
char
*
trx_query
;
/*!< MySQL statement being
executed in the transaction */
struct
charset_info_st
*
trx_query_cs
;
/*!< charset encode the MySQL
statement */
const
char
*
trx_operation_state
;
/*!< trx_struct::op_info */
ulint
trx_tables_in_use
;
/*!< n_mysql_tables_in_use in
trx_struct */
...
...
storage/innobase/trx/trx0i_s.c
View file @
a9c095a0
...
...
@@ -508,7 +508,6 @@ fill_trx_row(
stmt
=
innobase_get_stmt
(
trx
->
mysql_thd
,
&
stmt_len
);
if
(
stmt
!=
NULL
)
{
char
query
[
TRX_I_S_TRX_QUERY_MAX_LEN
+
1
];
if
(
stmt_len
>
TRX_I_S_TRX_QUERY_MAX_LEN
)
{
...
...
@@ -522,6 +521,8 @@ fill_trx_row(
cache
->
storage
,
stmt
,
stmt_len
+
1
,
MAX_ALLOWED_FOR_STORAGE
(
cache
));
row
->
trx_query_cs
=
innobase_get_charset
(
trx
->
mysql_thd
);
if
(
row
->
trx_query
==
NULL
)
{
return
(
FALSE
);
...
...
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