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
2abbd21f
Commit
2abbd21f
authored
Nov 18, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding style fix
parent
66be0f07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
sql/sql_show.cc
sql/sql_show.cc
+29
-29
No files found.
sql/sql_show.cc
View file @
2abbd21f
...
...
@@ -1478,19 +1478,19 @@ static bool show_status_array(THD *thd, const char *wild,
end
=
int10_to_str
((
long
)
*
(
uint32
*
)
value
,
buff
,
10
);
break
;
case
SHOW_HAVE
:
{
SHOW_COMP_OPTION
tmp
=
*
(
SHOW_COMP_OPTION
*
)
value
;
pos
=
show_comp_option_name
[(
int
)
tmp
];
end
=
strend
(
pos
);
break
;
}
{
SHOW_COMP_OPTION
tmp
=
*
(
SHOW_COMP_OPTION
*
)
value
;
pos
=
show_comp_option_name
[(
int
)
tmp
];
end
=
strend
(
pos
);
break
;
}
case
SHOW_CHAR
:
{
if
(
!
(
pos
=
value
))
pos
=
""
;
end
=
strend
(
pos
);
break
;
}
{
if
(
!
(
pos
=
value
))
pos
=
""
;
end
=
strend
(
pos
);
break
;
}
case
SHOW_STARTTIME
:
nr
=
(
long
)
(
thd
->
query_start
()
-
start_time
);
end
=
int10_to_str
(
nr
,
buff
,
10
);
...
...
@@ -1503,29 +1503,29 @@ static bool show_status_array(THD *thd, const char *wild,
end
=
strmov
(
buff
,
rpl_status_type
[(
int
)
rpl_status
]);
break
;
case
SHOW_SLAVE_RUNNING
:
{
pthread_mutex_lock
(
&
LOCK_active_mi
);
end
=
strmov
(
buff
,
(
active_mi
->
slave_running
&&
active_mi
->
rli
.
slave_running
)
?
"ON"
:
"OFF"
);
pthread_mutex_unlock
(
&
LOCK_active_mi
);
break
;
}
{
pthread_mutex_lock
(
&
LOCK_active_mi
);
end
=
strmov
(
buff
,
(
active_mi
->
slave_running
&&
active_mi
->
rli
.
slave_running
)
?
"ON"
:
"OFF"
);
pthread_mutex_unlock
(
&
LOCK_active_mi
);
break
;
}
#endif
/* HAVE_REPLICATION */
case
SHOW_OPENTABLES
:
end
=
int10_to_str
((
long
)
cached_tables
(),
buff
,
10
);
break
;
case
SHOW_CHAR_PTR
:
{
if
(
!
(
pos
=
*
(
char
**
)
value
))
pos
=
""
;
end
=
strend
(
pos
);
break
;
}
{
if
(
!
(
pos
=
*
(
char
**
)
value
))
pos
=
""
;
end
=
strend
(
pos
);
break
;
}
case
SHOW_DOUBLE
:
{
end
=
buff
+
sprintf
(
buff
,
"%f"
,
*
(
double
*
)
value
);
break
;
}
{
end
=
buff
+
sprintf
(
buff
,
"%f"
,
*
(
double
*
)
value
);
break
;
}
#ifdef HAVE_OPENSSL
/* First group - functions relying on CTX */
case
SHOW_SSL_CTX_SESS_ACCEPT
:
...
...
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