Pass $attr twice to _load_attr( ) in AUTOLOAD when using a mib leaf to make sure data is cached.

This commit is contained in:
Eric Miller
2007-04-21 02:43:55 +00:00
parent 8cae0c74fb
commit 3edb813da7

View File

@@ -2984,7 +2984,7 @@ sub AUTOLOAD {
return $self->_global( $attr );
}
if ( $table_leaf ) {
return $self->_load_attr( 'mib_leaf',$attr,@_ );
return $self->_load_attr( $attr,$attr,@_ );
}
}
@@ -3009,7 +3009,7 @@ sub AUTOLOAD {
unless (defined $self->{"_${attr}"} and !scalar(@_));
}
if ( $table_leaf ) {
return $self->_load_attr( 'mib_leaf', $attr,@_ )
return $self->_load_attr( $attr, $attr,@_ )
unless (defined $self->{"_${attr}"} and !scalar(@_));
}