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
077f0812
Commit
077f0812
authored
May 13, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innodb.cc:
innobase_mysql_print_thd(): protect thd with LOCK_thread_count (Bug #3596)
parent
bd8901fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
sql/ha_innodb.cc
sql/ha_innodb.cc
+9
-2
No files found.
sql/ha_innodb.cc
View file @
077f0812
...
...
@@ -328,6 +328,8 @@ innobase_mysql_print_thd(
thd
=
(
const
THD
*
)
input_thd
;
VOID
(
pthread_mutex_lock
(
&
LOCK_thread_count
));
fprintf
(
f
,
"MySQL thread id %lu, query id %lu"
,
thd
->
thread_id
,
thd
->
query_id
);
if
(
thd
->
host
)
{
...
...
@@ -351,11 +353,16 @@ innobase_mysql_print_thd(
}
if
((
s
=
thd
->
query
))
{
putc
(
' '
,
f
);
fputs
(
s
,
f
);
/* determine the length of the query string */
uint32
i
,
len
=
thd
->
query_length
;
for
(
i
=
0
;
i
<
len
&&
s
[
i
];
i
++
);
putc
(
'\n'
,
f
);
fwrite
(
s
,
1
,
i
,
f
);
}
putc
(
'\n'
,
f
);
VOID
(
pthread_mutex_unlock
(
&
LOCK_thread_count
));
}
/*************************************************************************
...
...
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