mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
208b677637
When mysqldadmin is run with sleep and count options, it goes into an infinite loop and keeps executing the specified command. This happened because the statement, responsible for decrementing the count value, was missing. Fixed by adding a statement which will decrement the count value for each iteration. client/mysqladmin.cc: Bug#58221 : mysqladmin --sleep=x --count=x keeps looping Added a condition to check and decrement the count value stored in nr_iterations per iteration. mysql-test/r/mysqladmin.result: Added a testcase for Bug#58221. mysql-test/t/mysqladmin.test: Added a testcase for Bug#58221.
12 lines
317 B
Text
12 lines
317 B
Text
mysqld is alive
|
|
mysqladmin: unknown variable 'database=db1'
|
|
Warning: mysqladmin: unknown variable 'loose-database=db2'
|
|
mysqld is alive
|
|
#
|
|
# Bug#58221 : mysqladmin --sleep=x --count=x keeps looping
|
|
#
|
|
# Executing mysqladmin with --sleep=1 and --count=2.
|
|
# Done.
|
|
# Displaying the output :
|
|
mysqld is alive
|
|
mysqld is alive
|