Revision history for DBM::Deep.
+1.0013 Jun 18 00:00:00 2008 EST
+ - (This version is compatible with 1.0012)
+ - Fix for RT#30144 (Optimization failure on Win32)
+ - Fixed a bug in reindex_entry (Thanks, Wulfram Humann!)
+
1.0012 Jun 09 15:00:00 2008 EST
- (This version is compatible with 1.0011)
- Fix for RT#30085 (Remove dependency on XS module)
use strict;
use warnings;
-our $VERSION = q(1.0012);
+our $VERSION = q(1.0013);
use Data::Dumper ();
use Fcntl qw( :flock );
$self->lock();
$self->_engine->clear_cache;
$self->_copy_node( $db_temp );
- $dbtemp->_storage->close;
+ $db_temp->_storage->close;
undef $db_temp;
##
use strict;
use warnings;
-our $VERSION = q(1.0012);
+our $VERSION = q(1.0013);
# This is to allow DBM::Deep::Array to handle negative indices on
# its own. Otherwise, Perl would intercept the call to negative
use strict;
use warnings;
-our $VERSION = q(1.0012);
+our $VERSION = q(1.0013);
# Never import symbols into our namespace. We are a class, not a library.
# -RobK, 2008-05-27
TRANS:
while ( my ($trans_id, $locs) = each %{ $self->{entries} } ) {
- foreach my $orig_loc ( keys %{ $locs } ) {
- if ( $orig_loc == $old_loc ) {
- delete $locs->{orig_loc};
- $locs->{$new_loc} = undef;
- next TRANS;
- }
+ if ( exists $locs->{$old_loc} ) {
+ delete $locs->{$old_loc};
+ $locs->{$new_loc} = undef;
+ next TRANS;
}
}
}
use strict;
use warnings;
-our $VERSION = q(1.0012);
+our $VERSION = q(1.0013);
use Fcntl qw( :DEFAULT :flock :seek );
+use constant DEBUG => 0;
+
sub new {
my $class = shift;
my ($args) = @_;
seek( $fh, $loc + $self->{file_offset}, SEEK_SET );
}
+ if ( DEBUG ) {
+ my $caller = join ':', (caller)[0,2];
+ my $len = length( join '', @_ );
+ warn "($caller) print_at( " . (defined $loc ? $loc : '<undef>') . ", $len )\n";
+ }
+
print( $fh @_ ) or die "Internal Error (print_at($loc)): $!\n";
return 1;
seek( $fh, $loc + $self->{file_offset}, SEEK_SET );
}
+ if ( DEBUG ) {
+ my $caller = join ':', (caller)[0,2];
+ warn "($caller) read_at( " . (defined $loc ? $loc : '<undef>') . ", $size )\n";
+ }
+
my $buffer;
read( $fh, $buffer, $size);
use strict;
use warnings;
-our $VERSION = q(1.0012);
+our $VERSION = q(1.0013);
use base 'DBM::Deep';
isa_ok( $db, 'DBM::Deep' );
ok(1, "We can successfully open a file!" );
+
+$db->{foo} = 'bar';
}
}
-plan tests => 282;
+plan tests => 292;
use t::common qw( new_fh );
use File::Spec;
'0.981', '0.982', '0.983',
'0.99_01', '0.99_02', '0.99_03', '0.99_04',
'1.00', '1.000', '1.0000', '1.0001', '1.0002',
- '1.0003', '1.0004', '1.0005', '1.0006', '1.0007', '1.0008', '1.0009', '1.0010', '1.0011', '1.0012',
+ '1.0003', '1.0004', '1.0005', '1.0006', '1.0007', '1.0008', '1.0009', '1.0010', '1.0011', '1.0012', '1.0013',
);
foreach my $input_filename (
die "$output\n" if $output;
my $db;
- if ( $v =~ /^1\.001[0-2]/ || $v =~ /^1\.000[3-9]/ ) {
+ if ( $v =~ /^1\.001[0-3]/ || $v =~ /^1\.000[3-9]/ ) {
push @INC, 'lib';
eval "use DBM::Deep";
$db = DBM::Deep->new( $output_filename );
my %opts = (
man => 0,
help => 0,
- version => '1.0012',
+ version => '1.0013',
autobless => 1,
);
GetOptions( \%opts,
{
my $ver = $opts{version};
- if ( $ver =~ /^1\.001[0-2]/) {
+ if ( $ver =~ /^1\.001[0-3]/) {
$ver = 3;
}
elsif ( $ver =~ /^1\.000[3-9]/) {