From 04dff71d481ae6b3e2e260e29b15ae9f679ed0df Mon Sep 17 00:00:00 2001 From: Marius Tolzmann Date: Wed, 19 Aug 2015 16:43:29 +0200 Subject: [PATCH] mysql: Fix update of stats_{wait,run,idle}_sec --- mysql/fix_stats_runwaitidle_sec.sql | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/mysql/fix_stats_runwaitidle_sec.sql b/mysql/fix_stats_runwaitidle_sec.sql index 8ebf3bc..ea1c7ce 100644 --- a/mysql/fix_stats_runwaitidle_sec.sql +++ b/mysql/fix_stats_runwaitidle_sec.sql @@ -12,7 +12,9 @@ SET @srun=0, @gid=0, @dt=0, - @ot=0 + @ot=0, + @gidchange=0, + @last="none" ; CREATE TEMPORARY TABLE IF NOT EXISTS @@ -141,7 +143,15 @@ AS ) ; -SET @sinq=0,@srun=0,@gid=0,@dt=0,@ot=0; +SET + @sinq=0, + @srun=0, + @gid=0, + @dt=0, + @ot=0, + @gidchange=0, + @last="none" + ; UPDATE mxq_group AS g