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
481a8b39
Commit
481a8b39
authored
Apr 09, 2012
by
Leigh B Stoller
Browse files
Kill off bootlogs for vnodes when we delete the vnode.
parent
16c3451f
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/Node.pm.in
View file @
481a8b39
...
...
@@ -2368,6 +2368,7 @@ sub DeleteVnodes(@)
$interface->Delete()
if (defined($interface));
DBQueryWarn("delete from node_bootlogs where node_id='
$
vnodeid
'");
DBQueryWarn("delete from node_hostkeys where node_id='
$
vnodeid
'");
DBQueryWarn("delete from node_status where node_id='
$
vnodeid
'");
DBQueryWarn("delete from node_rusage where node_id='
$
vnodeid
'");
...
...
@@ -3294,5 +3295,21 @@ sub DeleteOutlet($)
return 0;
}
sub GetOutletAuthInfo($$)
{
my ($self, $keytype) = @_;
my $node_id = $self->node_id();
my $query_result =
DBQueryWarn("select key_uid,mykey from outlets_remoteauth ".
"where node_id='
$
node_id
' and key_role='
$
keytype
'");
return undef
if (!defined($query_result) || !$query_result->numrows);
my ($login,$auxinfo) = $query_result->fetchrow_array();
return ($login, $auxinfo);
}
# _Always_ make sure that this 1 is at the end of the file...
1;
Write
Preview
Supports
Markdown
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