Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
eb5b6361
Commit
eb5b6361
authored
Jun 12, 2017
by
Leigh B Stoller
Browse files
Change allexpt_duration in stats tables to a float; we are overflowing
the unsigned int.
parent
05b2baf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/database-create.sql
View file @
eb5b6361
...
...
@@ -2259,7 +2259,7 @@ CREATE TABLE `group_stats` (
`exptswapmod_count`
int
(
11
)
unsigned
default
'0'
,
`exptswapmod_last`
datetime
default
NULL
,
`last_activity`
datetime
default
NULL
,
`allexpt_duration`
int
(
11
)
unsigned
default
'0'
,
`allexpt_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_vnodes`
int
(
11
)
unsigned
default
'0'
,
`allexpt_vnode_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_pnodes`
int
(
11
)
unsigned
default
'0'
,
...
...
@@ -4338,7 +4338,7 @@ CREATE TABLE `project_stats` (
`exptswapmod_count`
int
(
11
)
unsigned
default
'0'
,
`exptswapmod_last`
datetime
default
NULL
,
`last_activity`
datetime
default
NULL
,
`allexpt_duration`
int
(
11
)
unsigned
default
'0'
,
`allexpt_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_vnodes`
int
(
11
)
unsigned
default
'0'
,
`allexpt_vnode_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_pnodes`
int
(
11
)
unsigned
default
'0'
,
...
...
@@ -5129,7 +5129,7 @@ CREATE TABLE `user_stats` (
`exptswapmod_count`
int
(
11
)
unsigned
default
'0'
,
`exptswapmod_last`
datetime
default
NULL
,
`last_activity`
datetime
default
NULL
,
`allexpt_duration`
int
(
11
)
unsigned
default
'0'
,
`allexpt_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_vnodes`
int
(
11
)
unsigned
default
'0'
,
`allexpt_vnode_duration`
double
(
14
,
0
)
unsigned
default
'0'
,
`allexpt_pnodes`
int
(
11
)
unsigned
default
'0'
,
...
...
sql/updates/4/586
0 → 100644
View file @
eb5b6361
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBQueryFatal("alter table group_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
DBQueryFatal("alter table project_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
DBQueryFatal("alter table user_stats change `allexpt_duration` " .
" `allexpt_duration` double(14,0) unsigned default '0'");
return 0;
}
# Local Variables:
# mode:perl
# End:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment