From 21490e591bd5556d7916f1c8baee8c63c4be47a1 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 6 Jun 2011 16:58:59 +0000 Subject: [PATCH] Avoid calling clear_cache two times on nodelist table objects when build_cache is only called once git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index 76fc44608..f64eee146 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -2061,8 +2061,10 @@ sub getNodesAttribs { } $self->_clear_cache; $self->{_use_cache} = 0; - $self->{nodelist}->_clear_cache; - $self->{nodelist}->{_use_cache} = 0; + if ($self->{tabname} ne 'nodelist') { #avoid calling clear_cache on nodelist twice + $self->{nodelist}->_clear_cache; + $self->{nodelist}->{_use_cache} = 0; + } return $rethash; }