diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-07-01 12:02:44 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-07-01 12:02:44 +0200 |
commit | 03c71ff2ba1c5949ff715e64008cfdb291c6b14a (patch) | |
tree | d054ac75428159fb5374c8f6b06ca70723bc4925 /mysql-test/t/processlist.test | |
parent | a924e9004ceff8838d17476136ddccb3ef4a8e51 (diff) | |
download | mariadb-git-03c71ff2ba1c5949ff715e64008cfdb291c6b14a.tar.gz |
MDEV-4683 query start_time not reset when going to sleep
Diffstat (limited to 'mysql-test/t/processlist.test')
-rw-r--r-- | mysql-test/t/processlist.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/processlist.test b/mysql-test/t/processlist.test index eff1daff3aa..c7b775cf992 100644 --- a/mysql-test/t/processlist.test +++ b/mysql-test/t/processlist.test @@ -18,5 +18,18 @@ SET DEBUG_SYNC = 'now SIGNAL fill_schema_proceed'; connection con1; reap; +connection default; + +# +# MDEV-4683 query start_time not reset when going to sleep +# + +connection con1; +select sleep(5); #run a query that will take some time +connection default; + +# verify that the time in COM_SLEEP doesn't include the query run time +select command, time < 5 from information_schema.processlist where id != connection_id(); + disconnect con1; |