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
b6be8fd0
Commit
b6be8fd0
authored
May 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
valgrind error fix
parent
9949755a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
sql/sql_show.cc
sql/sql_show.cc
+11
-7
No files found.
sql/sql_show.cc
View file @
b6be8fd0
...
...
@@ -4546,8 +4546,15 @@ int fill_status(THD *thd, TABLE_LIST *tables, COND *cond)
enum
enum_var_type
option_type
;
bool
upper_case_names
=
(
schema_table_idx
!=
SCH_STATUS
);
if
(
lex
->
option_type
==
OPT_GLOBAL
||
schema_table_idx
==
SCH_GLOBAL_STATUS
)
if
(
schema_table_idx
==
SCH_STATUS
)
{
option_type
=
lex
->
option_type
;
if
(
option_type
==
OPT_GLOBAL
)
tmp1
=
&
tmp
;
else
tmp1
=
thd
->
initial_status_var
;
}
else
if
(
schema_table_idx
==
SCH_GLOBAL_STATUS
)
{
option_type
=
OPT_GLOBAL
;
tmp1
=
&
tmp
;
...
...
@@ -4555,10 +4562,7 @@ int fill_status(THD *thd, TABLE_LIST *tables, COND *cond)
else
{
option_type
=
OPT_SESSION
;
if
(
schema_table_idx
==
SCH_SESSION_STATUS
)
tmp1
=
&
thd
->
status_var
;
else
tmp1
=
thd
->
initial_status_var
;
}
pthread_mutex_lock
(
&
LOCK_status
);
...
...
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