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
fc0d4724
Commit
fc0d4724
authored
Aug 05, 2002
by
jani@hynda.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --count=N (-c) to mysqladmin
parent
9bc030f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
client/mysqladmin.c
client/mysqladmin.c
+13
-3
No files found.
client/mysqladmin.c
View file @
fc0d4724
...
...
@@ -23,7 +23,7 @@
#include <my_pthread.h>
/* because of signal() */
#endif
#define ADMIN_VERSION "8.3
6
"
#define ADMIN_VERSION "8.3
7
"
#define MAX_MYSQL_VAR 128
#define SHUTDOWN_DEF_TIMEOUT 3600
/* Wait for shutdown */
#define MAX_TRUNC_LENGTH 3
...
...
@@ -36,7 +36,8 @@ static int interval=0;
static
my_bool
option_force
=
0
,
interrupted
=
0
,
new_line
=
0
,
opt_compress
=
0
,
opt_relative
=
0
,
opt_verbose
=
0
,
opt_vertical
=
0
,
tty_password
=
0
;
static
uint
tcp_port
=
0
,
option_wait
=
0
,
option_silent
=
0
;
static
uint
tcp_port
=
0
,
option_wait
=
0
,
option_silent
=
0
,
nr_iterations
,
opt_count_iterations
=
0
;
static
ulong
opt_connect_timeout
,
opt_shutdown_timeout
;
static
my_string
unix_port
=
0
;
...
...
@@ -103,6 +104,10 @@ static TYPELIB command_typelib=
static
struct
my_option
my_long_options
[]
=
{
{
"count"
,
'c'
,
"Number of iterations to make. This works with -i (--sleep) only"
,
(
gptr
*
)
&
nr_iterations
,
(
gptr
*
)
&
nr_iterations
,
0
,
GET_UINT
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"debug"
,
'#'
,
"Output debug log. Often this is 'd:t:o,filename'"
,
0
,
0
,
0
,
GET_STR
,
OPT_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"force"
,
'f'
,
...
...
@@ -177,6 +182,9 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
int
error
=
0
;
switch
(
optid
)
{
case
'c'
:
opt_count_iterations
=
1
;
break
;
case
'p'
:
if
(
argument
)
{
...
...
@@ -276,7 +284,7 @@ int main(int argc,char *argv[])
else
{
error
=
0
;
while
(
!
interrupted
)
while
(
!
interrupted
&&
(
!
opt_count_iterations
||
nr_iterations
)
)
{
new_line
=
0
;
if
((
error
=
execute_commands
(
&
mysql
,
argc
,
commands
)))
...
...
@@ -303,6 +311,8 @@ int main(int argc,char *argv[])
sleep
(
interval
);
if
(
new_line
)
puts
(
""
);
if
(
opt_count_iterations
)
nr_iterations
--
;
}
else
break
;
...
...
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