From f8702e980deda8fe120b469f4d34335b3040b297 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 9 Aug 2009 16:02:28 +0000 Subject: [PATCH] -Fix noderange to correctly enable cache for table for db worker and non-db worker modes git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/NodeRange.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/NodeRange.pm b/perl-xCAT/xCAT/NodeRange.pm index 20ccbe89c..6ae78a2e3 100644 --- a/perl-xCAT/xCAT/NodeRange.pm +++ b/perl-xCAT/xCAT/NodeRange.pm @@ -338,9 +338,9 @@ sub noderange { my $verify = (scalar(@_) == 1 ? shift : 1); unless ($nodelist) { $nodelist =xCAT::Table->new('nodelist',-create =>1); - $nodelist->{_use_cache} = 0; #TODO: a more proper external solution + $nodelist->_set_use_cache(0); #TODO: a more proper external solution $nodelist->_build_cache(['node','groups']); - $nodelist->{_use_cache} = 1; #TODO: a more proper external solution + $nodelist->_set_use_cache(1); #TODO: a more proper external solution } my %nodes = (); my %delnodes = ();