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
72b7b7de
Commit
72b7b7de
authored
May 16, 2007
by
gluh@mysql.com/eagle.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
valgrind error fix
parent
579cce54
Changes
1
Hide 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 @
72b7b7de
...
...
@@ -4546,19 +4546,23 @@ 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
;
}
else
{
{
option_type
=
OPT_SESSION
;
if
(
schema_table_idx
==
SCH_SESSION_STATUS
)
tmp1
=
&
thd
->
status_var
;
else
tmp1
=
thd
->
initial_status_var
;
tmp1
=
&
thd
->
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