Fix bug:3095. Routine opening unnecessary tables

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-09-26 06:10:39 +00:00
parent 4be6f6447b
commit ecd1c5999f

View File

@ -631,8 +631,8 @@ sub GetNodeOSARCH
{
my ($class, $node) = @_;
my $noderestab = xCAT::Table->new('noderes');
my $typetab = xCAT::Table->new('nodetype');
unless ($noderestab and $typetab)
#my $typetab = xCAT::Table->new('nodetype');
unless ($noderestab)
{
xCAT::MsgUtils->message('S',
"Unable to open noderes or nodetype table.\n");
@ -1067,8 +1067,8 @@ sub GetMasterNodeName
my ($class, $node) = @_;
my $master;
my $noderestab = xCAT::Table->new('noderes');
my $typetab = xCAT::Table->new('nodetype');
unless ($noderestab and $typetab)
#my $typetab = xCAT::Table->new('nodetype');
unless ($noderestab)
{
xCAT::MsgUtils->message('S',
"Unable to open noderes or nodetype table.\n");
@ -1093,13 +1093,13 @@ sub GetMasterNodeName
xCAT::MsgUtils->message('S', "Unable to identify master for $node.\n");
#$sitetab->close;
$noderestab->close;
$typetab->close;
#$typetab->close;
return 1;
}
#$sitetab->close;
$noderestab->close;
$typetab->close;
#$typetab->close;
return $master;
}