diff options
author | Georgi Kodinov <joro@sun.com> | 2009-03-13 15:51:25 +0200 |
---|---|---|
committer | Georgi Kodinov <joro@sun.com> | 2009-03-13 15:51:25 +0200 |
commit | 8a5a804530eb0ee9c935b2b581d62ead93ae2854 (patch) | |
tree | 6db7cfa4edc15e85720d76cfe1d091f571b589ab /mysql-test/r | |
parent | 8725bcd94402800ac2d87f94dfecd5a202d80497 (diff) | |
download | mariadb-git-8a5a804530eb0ee9c935b2b581d62ead93ae2854.tar.gz |
Bug #22047 : Time in SHOW PROCESSLIST for SQL thread in replication
seems to become negative
THD::start_time has a dual meaning : it's either the time since the process
entered a given state or is the transaction time returned by e.g. NOW().
This causes problems, as sometimes THD::start_time may be set to a value
that is correct and needed when used as a base for NOW(), but these times
may be arbitrary (SET @@timestamp) or non-local (coming from the master
through the replication feed).
If one such non-local time is set there's no way to return a correct value
for e.g. SHOW PROCESSLIST or SELECT ... FROM INFORMATION_SCHEMA.PROCESSLIST.
Fixed by making the Time column in SHOW PROCESSLIST SIGNED LONG instead of
UNSIGNED LONG and doing the correct conversions.
Note that no reliable test suite can be constructed, since it would require
knowing the local time and can't be achieved by the means of the current test
suite.
Diffstat (limited to 'mysql-test/r')
0 files changed, 0 insertions, 0 deletions