Commit d1b88a5b authored by Leigh B. Stoller's avatar Leigh B. Stoller

Reduce delay_capacity by one in the node_types table.

parent 37fde61f
......@@ -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");
......
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