Skip to content

Commit

Permalink
mysql: Fix update of stats_{wait,run,idle}_sec
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Aug 19, 2015
1 parent e3a023d commit 04dff71
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions mysql/fix_stats_runwaitidle_sec.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04dff71

Please sign in to comment.