-fix mistake in _clear_cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
62192c361c
commit
df9b3c3b16
@ -1528,7 +1528,7 @@ sub _clear_cache { #PRIVATE FUNCTION TO EXPIRE CACHED DATA EXPLICITLY
|
||||
#TODO: only clear cache if ref count mentioned in build_cache is 1, otherwise decrement ref count
|
||||
my $self = shift;
|
||||
if ($dbworkerpid) {
|
||||
return dbc_call($self,'_clear_cache',$_);
|
||||
return dbc_call($self,'_clear_cache',@_);
|
||||
}
|
||||
if ($self->{_cache_ref} > 1) { #don't clear the cache if there are still live references
|
||||
$self->{_cache_ref} -= 1;
|
||||
|
Loading…
Reference in New Issue
Block a user