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
89a6be64
Commit
89a6be64
authored
May 20, 2009
by
Jim Winstead
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysqladmin --count=X --sleep=Y would always delay Y seconds after the last
iteration before exiting. (Bug #42639)
parent
66f12372
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
client/mysqladmin.cc
client/mysqladmin.cc
+3
-3
No files found.
client/mysqladmin.cc
View file @
89a6be64
...
@@ -371,7 +371,7 @@ int main(int argc,char *argv[])
...
@@ -371,7 +371,7 @@ int main(int argc,char *argv[])
}
}
else
else
{
{
while
(
!
interrupted
&&
(
!
opt_count_iterations
||
nr_iterations
)
)
while
(
!
interrupted
)
{
{
new_line
=
0
;
new_line
=
0
;
if
((
error
=
execute_commands
(
&
mysql
,
argc
,
commands
)))
if
((
error
=
execute_commands
(
&
mysql
,
argc
,
commands
)))
...
@@ -395,11 +395,11 @@ int main(int argc,char *argv[])
...
@@ -395,11 +395,11 @@ int main(int argc,char *argv[])
}
}
if
(
interval
)
if
(
interval
)
{
{
if
(
opt_count_iterations
&&
--
nr_iterations
==
0
)
break
;
sleep
(
interval
);
sleep
(
interval
);
if
(
new_line
)
if
(
new_line
)
puts
(
""
);
puts
(
""
);
if
(
opt_count_iterations
)
nr_iterations
--
;
}
}
else
else
break
;
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