my $md5 = $DIGEST_FUNC->($key);
- ##
- # Make sure file is open
- ##
-# if (!defined($self->_fh) && !$self->_open()) {
-# return;
-# }
-
unless ( _is_writable( $self->_fh ) ) {
$self->_throw_error( 'Cannot write to a readonly filehandle' );
}
my $self = shift->_get_self;
my $key = shift;
- ##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
my $md5 = $DIGEST_FUNC->($key);
##
my $md5 = $DIGEST_FUNC->($key);
##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
- ##
# Request exclusive lock for writing
##
$self->lock( LOCK_EX );
my $md5 = $DIGEST_FUNC->($key);
##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
- ##
# Request shared lock for reading
##
$self->lock( LOCK_SH );
my $self = $_[0]->_get_self;
##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
- ##
# Request exclusive lock for writing
##
$self->lock( LOCK_EX );
my $self = $_[0]->_get_self;
##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
- ##
# Request shared lock for reading
##
$self->lock( $self->LOCK_SH );
my $prev_md5 = $DBM::Deep::DIGEST_FUNC->($prev_key);
##
- # Make sure file is open
- ##
-# if (!defined($self->_fh)) { $self->_open(); }
-
- ##
# Request shared lock for reading
##
$self->lock( $self->LOCK_SH );