diff options
author | Jim Winstead <jimw@mysql.com> | 2009-05-20 17:25:10 -0700 |
---|---|---|
committer | Jim Winstead <jimw@mysql.com> | 2009-05-20 17:25:10 -0700 |
commit | 89a6be64380a7ea480c566474c6a103a799d7071 (patch) | |
tree | 4770e9916be0145bc72ad7d83fd85864a8f74dab /client/mysqladmin.cc | |
parent | 66f12372c1fbd915a83f4de2dc39081d5a556c06 (diff) | |
download | mariadb-git-89a6be64380a7ea480c566474c6a103a799d7071.tar.gz |
mysqladmin --count=X --sleep=Y would always delay Y seconds after the last
iteration before exiting. (Bug #42639)
Diffstat (limited to 'client/mysqladmin.cc')
-rw-r--r-- | client/mysqladmin.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/mysqladmin.cc b/client/mysqladmin.cc index 09821d6a995..a4e7c5ad0c9 100644 --- a/client/mysqladmin.cc +++ b/client/mysqladmin.cc @@ -371,7 +371,7 @@ int main(int argc,char *argv[]) } else { - while (!interrupted && (!opt_count_iterations || nr_iterations)) + while (!interrupted) { new_line = 0; if ((error=execute_commands(&mysql,argc,commands))) @@ -395,11 +395,11 @@ int main(int argc,char *argv[]) } if (interval) { + if (opt_count_iterations && --nr_iterations == 0) + break; sleep(interval); if (new_line) puts(""); - if (opt_count_iterations) - nr_iterations--; } else break; |