Commit 1d57505c authored by Leigh Stoller's avatar Leigh Stoller

Bump pnode/vnode duration counters to floats since several users

(Rob,Mike,Jay) have overflowed an unsigned int.
parent 639758e6
......@@ -1238,9 +1238,9 @@ CREATE TABLE `group_stats` (
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
`allexpt_pnode_duration` int(11) unsigned default '0',
`allexpt_pnode_duration` double(14,0) unsigned default '0',
PRIMARY KEY (`gid_idx`),
UNIQUE KEY `pidgid` (`pid`,`gid`),
KEY `gid_uuid` (`gid_uuid`)
......@@ -2611,9 +2611,9 @@ CREATE TABLE `project_stats` (
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
`allexpt_pnode_duration` int(11) unsigned default '0',
`allexpt_pnode_duration` double(14,0) unsigned default '0',
PRIMARY KEY (`pid_idx`),
UNIQUE KEY `pid` (`pid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......@@ -3133,9 +3133,9 @@ CREATE TABLE `user_stats` (
`last_activity` datetime default NULL,
`allexpt_duration` int(11) unsigned default '0',
`allexpt_vnodes` int(11) unsigned default '0',
`allexpt_vnode_duration` int(11) unsigned default '0',
`allexpt_vnode_duration` double(14,0) unsigned default '0',
`allexpt_pnodes` int(11) unsigned default '0',
`allexpt_pnode_duration` int(11) unsigned default '0',
`allexpt_pnode_duration` double(14,0) unsigned default '0',
PRIMARY KEY (`uid_idx`),
KEY `uid_uuid` (`uid_uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
......
......@@ -4291,3 +4291,21 @@ last_net_act,last_cpu_act,last_ext_act);
./newlans.pl
4.141: Bump pnode/vnode duration counters to floats since several
users/projects have overflowed an unsigned int.
alter table group_stats change `allexpt_vnode_duration`
`allexpt_vnode_duration` double(14,0) unsigned default '0';
alter table group_stats change `allexpt_pnode_duration`
`allexpt_pnode_duration` double(14,0) unsigned default '0';
alter table project_stats change `allexpt_vnode_duration`
`allexpt_vnode_duration` double(14,0) unsigned default '0';
alter table project_stats change `allexpt_pnode_duration`
`allexpt_pnode_duration` double(14,0) unsigned default '0';
alter table user_stats change `allexpt_vnode_duration`
`allexpt_vnode_duration` double(14,0) unsigned default '0';
alter table user_stats change `allexpt_pnode_duration`
`allexpt_pnode_duration` double(14,0) unsigned default '0';
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment