Skip to content
GitLab
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
d1b88a5b
Commit
d1b88a5b
authored
Dec 01, 2004
by
Leigh B. Stoller
Browse files
Reduce delay_capacity by one in the node_types table.
parent
37fde61f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/elabinelab.in
View file @
d1b88a5b
...
...
@@ -316,7 +316,18 @@ sub DumpDBGoo()
foreach
my
$table
(
@FULLTABLES
)
{
unlink
("
$statedir
/
$table
");
DBQueryWarn
("
select * from
$table
"
.
DBQueryWarn
("
create temporary table temp_
${table}
"
.
"
select t.* from
$table
as t
")
or
die
("
*** $0:
\n
"
.
"
Could not dump table
$table
\n
");
if
(
$table
eq
"
node_types
")
{
DBQueryFatal
("
update temp_
${table}
set
"
.
"
delay_capacity=delay_capacity-1
"
.
"
where delay_capacity>0
");
}
DBQueryWarn
("
select * from temp_
$table
"
.
"
into outfile '
$statedir
/
$table
'
")
or
die
("
*** $0:
\n
"
.
"
Could not dump table
$table
\n
");
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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