- Added filter sugar methods to be more API-compatible with other DBMs
- Implemented _dump_file in order to display the file structure.
- Arrays now clean up after themselves better.
+ - Bucketlists now clean up after themselves better.
+ - Reindexing properly clears the old bucketlist before freeing it.
1.0003 Sep 24 14:00:00 2007 EDT
- THIS VERSION IS INCOMPATIBLE WITH FILES FROM ALL OTHER PRIOR VERSIONS.
my ($trans_id) = @_;
# Hardcode staleness of 0 for the HEAD
- return unless $trans_id;
+ return 0 unless $trans_id;
$self->storage->print_at(
$self->trans_loc + $self->txn_bitfield_len + $STALE_SIZE * ($trans_id - 1),
elsif ( $sector->type eq 'B' ) {
foreach my $bucket ( $sector->chopped_up ) {
$return .= "\n ";
- $return .= sprintf "%04d", unpack($StP{$self->byte_size},
+ $return .= sprintf "%08d", unpack($StP{$self->byte_size},
substr( $bucket->[-1], $self->hash_size, $self->byte_size),
);
foreach my $txn ( 0 .. $self->num_txns - 1 ) {
$self->byte_size,
),
);
- $return .= sprintf " %04d", $l;
+ $return .= sprintf " %08d", $l;
}
}
}