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
17d5da7e
Commit
17d5da7e
authored
May 12, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: avoid some data races in innobase_mysql_print_thd() (Bug #3596)
parent
ecdac0a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
sql/ha_innodb.cc
sql/ha_innodb.cc
+7
-6
No files found.
sql/ha_innodb.cc
View file @
17d5da7e
...
...
@@ -323,9 +323,10 @@ innobase_mysql_print_thd(
FILE
*
f
,
/* in: output stream */
void
*
input_thd
)
/* in: pointer to a MySQL THD object */
{
THD
*
thd
;
const
THD
*
thd
;
const
char
*
s
;
thd
=
(
THD
*
)
input_thd
;
thd
=
(
const
THD
*
)
input_thd
;
fprintf
(
f
,
"MySQL thread id %lu, query id %lu"
,
thd
->
thread_id
,
thd
->
query_id
);
...
...
@@ -344,14 +345,14 @@ innobase_mysql_print_thd(
fputs
(
thd
->
user
,
f
);
}
if
(
thd
->
proc_info
)
{
if
(
(
s
=
thd
->
proc_info
)
)
{
putc
(
' '
,
f
);
fputs
(
thd
->
proc_info
,
f
);
fputs
(
s
,
f
);
}
if
(
thd
->
query
)
{
if
(
(
s
=
thd
->
query
)
)
{
putc
(
' '
,
f
);
fputs
(
thd
->
query
,
f
);
fputs
(
s
,
f
);
}
putc
(
'\n'
,
f
);
...
...
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