Commit bac098da authored by Leigh Stoller's avatar Leigh Stoller

Add a termination_pending flag to geni_slices, to be used by the

CM to smooth out CreateSliver() cancellation.
parent 8bc8a1e3
......@@ -56,6 +56,7 @@ CREATE TABLE `geni_slices` (
`created` datetime default NULL,
`expires` datetime default NULL,
`shutdown` datetime default NULL,
`termination_pending` datetime default NULL,
`locked` datetime default NULL,
`stitch_locked` datetime default NULL,
`hosed` tinyint(1) NOT NULL default '0',
......
#
#
#
use strict;
use GeniDB;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
DBSetDefault($dbhandle);
if (! DBKeyExists("geni_slices", "termination_pending")) {
DBQueryFatal("alter table geni_slices add ".
" `termination_pending` datetime default NULL ".
" after shutdown");
}
return 0;
}
1;
# Local Variables:
# mode:perl
# End:
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