From ecd1c5999f881a56b733f9eaa2b0d34790ced847 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Wed, 26 Sep 2012 06:10:39 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/TableUtils.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/perl-xCAT/xCAT/TableUtils.pm b/perl-xCAT/xCAT/TableUtils.pm index 6a8639eda..e8b78f401 100644 --- a/perl-xCAT/xCAT/TableUtils.pm +++ b/perl-xCAT/xCAT/TableUtils.pm @@ -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; }