Commit 481a8b39 authored by Leigh B Stoller's avatar Leigh B Stoller

Kill off bootlogs for vnodes when we delete the vnode.

parent 16c3451f
......@@ -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;
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